PhysicsCollideShapeResult2D
Stores the collision points of a shape collision query.
Stores the collision points of a shape collision query.
This class contains the contact points computed by PhysicsDirectSpaceState2D.CollideShapeInto.
Each collision is represented as a pair of points: one on the query shape and one on the colliding shape.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
PhysicsCollideShapeResult2DConstructor
public PhysicsCollideShapeResult2D();Properties1
MaxCollisionsProperty
public int MaxCollisions { get; set; }The maximum number of collisions this object can store.
Methods5
GetCollisionCountint
public int GetCollisionCount();Returns the number of point pairs detected by the query.
Returns
intGetMaxCollisionsint
public int GetMaxCollisions();Returns
intGetPointOnCollidingShapeVector2
public Vector2 GetPointOnCollidingShape(int collisionIndex);Returns the collision point on the colliding shape for the collision at the given index.
| Name | Type | Default |
|---|---|---|
collisionIndex | int | — |
Returns
Vector2GetPointOnQueriedShapeVector2
public Vector2 GetPointOnQueriedShape(int collisionIndex);Returns the collision point on the query shape for the collision at the given index.
| Name | Type | Default |
|---|---|---|
collisionIndex | int | — |
Returns
Vector2SetMaxCollisionsvoid
public void SetMaxCollisions(int maxCollisions);| Name | Type | Default |
|---|---|---|
maxCollisions | int | — |
Reckfell Engine documentationBack to top ↑