useOneWay
Should the one-way collision behaviour be used?
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public bool useOneWay { get; set; }
Remarks
When true, collisions are only allowed when the linear velocity, transformed into the local-space of the target Collider2D, are less than zero. For Collider2D that are not rotated in Z, this equates to a vertical velocity less than zero.
Additional Resources: _useOneWayGrouping