PhysicsGetRestInfoResult3D
Stores the nearest collision information of a shape query.
Stores the nearest collision information of a shape query.
This class contains the collision data computed by PhysicsDirectSpaceState3D.GetRestInfoInto.
If the shape collides with multiple objects, only the nearest collision is stored.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
PhysicsGetRestInfoResult3DConstructor
public PhysicsGetRestInfoResult3D();Properties6
ColliderIdProperty
public ulong ColliderId { get; }The colliding object's ID.
ColliderRidProperty
public Rid ColliderRid { get; }The intersecting object's Rid.
ColliderShapeProperty
public int ColliderShape { get; }The shape index of the colliding shape.
ColliderVelocityProperty
public Vector3 ColliderVelocity { get; }The colliding object's velocity Vector3. If the object is an Area3D, the result is (0, 0, 0).
NormalProperty
public Vector3 Normal { get; }The collision normal of the query shape at the intersection point, pointing away from the intersecting object.
PointProperty
public Vector3 Point { get; }The intersection point.
Methods6
GetColliderIdulong
public ulong GetColliderId();Returns
ulongGetColliderRidRid
public Rid GetColliderRid();Returns
RidGetColliderShapeint
public int GetColliderShape();Returns
intGetColliderVelocityVector3
public Vector3 GetColliderVelocity();Returns
Vector3GetNormalVector3
public Vector3 GetNormal();Returns
Vector3GetPointVector3
public Vector3 GetPoint();Returns
Vector3Reckfell Engine documentationBack to top ↑