Represents a single instance of a 2D physics Scene.
A 2D physics Scene owns all 2D physics component objects added to it and can perform a simulation of them as well as execute queries against them. All of this functionality is isolated from any other physics Scene. Using this, multiple independent physics Scenes can coexist.
BoxCast | Casts a box against colliders in the PhysicsScene2D, returning the first intersection only. |
CapsuleCast | Casts a capsule against colliders in the PhysicsScene2D, returning the first intersection only. |
CircleCast | Casts a circle against colliders in the PhysicsScene2D, returning the first intersection only. |
GetRayIntersection | Cast a 3D ray against the colliders in the PhysicsScene2D, returning the first intersection only. |
IsEmpty | Determines whether the physics Scene is empty or not. |
IsValid | Determines whether the physics Scene is valid or not. |
Linecast | Casts a line segment against colliders in the PhysicsScene2D, returning the first intersection only. |
OverlapArea | Checks an area (non-rotated box) against colliders in the PhysicsScene2D, returning the first intersection only. |
OverlapBox | Checks a box against colliders in the PhysicsScene2D, returning the first intersection only. |
OverlapCapsule | Checks a capsule against colliders in the PhysicsScene2D, returning the first intersection only. |
OverlapCircle | Checks a circle against colliders in the PhysicsScene2D, returning the first intersection only. |
OverlapPoint | Checks a point against colliders in the PhysicsScene2D, returning the first intersection only. |
Raycast | Casts a ray against colliders in the PhysicsScene2D, returning the first intersection only. |
Simulate | Simulate physics associated with this PhysicsScene. |
OverlapCollider | Checks a collider against colliders in the PhysicsScene2D, returning all intersections. |