CollisionWorld2D#
Scene-owned collider queries. Cached outlines follow authored shapes and live transforms. This is a linear broad phase, not a rigid-body solver. Layer and mask values are bit fields.
public sealed class CollisionWorld2DMembers: CastCircle · GeometryUpdates · GetBounds · LastSweepTests
CastCircle#
public bool CastCircle(Vector2 origin, Vector2 displacement, float radius, out ColliderHit2D hit, RuntimeEntity? ignore = null, int layer = 1, int mask = -1, bool includeSensors = true);GeometryUpdates#
public long GeometryUpdates { get; }GetBounds#
public Bounds2D GetBounds(RuntimeEntity entity);LastSweepTests#
public int LastSweepTests { get; }Related types#
Bounds2D · ColliderHit2D · RuntimeEntity
Source#
- CollisionWorld2D.cs