PhysicsCollideShapeResult3D
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 PhysicsDirectSpaceState3D.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
PhysicsCollideShapeResult3DConstructor
public PhysicsCollideShapeResult3D();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
intGetPointOnCollidingShapeVector3
public Vector3 GetPointOnCollidingShape(int collisionIndex);Returns the collision point on the colliding shape for the collision at the given index.
| Name | Type | Default |
|---|---|---|
collisionIndex | int | — |
Returns
Vector3GetPointOnQueriedShapeVector3
public Vector3 GetPointOnQueriedShape(int collisionIndex);Returns the collision point on the query shape for the collision at the given index.
| Name | Type | Default |
|---|---|---|
collisionIndex | int | — |
Returns
Vector3SetMaxCollisionsvoid
public void SetMaxCollisions(int maxCollisions);| Name | Type | Default |
|---|---|---|
maxCollisions | int | — |
Reckfell Engine documentationBack to top ↑