Plush

CollisionWorld2D#

PlushEngine · Type index

Namespace: PlushEngine.Physics2D (using PlushEngine.Physics2D;)

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 CollisionWorld2D

Members: 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; }

Bounds2D · ColliderHit2D · RuntimeEntity

Source#