reckfellENGINE

PhysicsTestMotionResult3D

Describes the motion and collision result from PhysicsServer3D.body_test_motion.

On this page
class PhysicsTestMotionResult3DReckfellSharpInherits RefCounted

Describes the motion and collision result from PhysicsServer3D.BodyTestMotion.

Describes the motion and collision result from PhysicsServer3D.BodyTestMotion.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

PhysicsTestMotionResult3DConstructor
# PhysicsTestMotionResult3D
C#
public PhysicsTestMotionResult3D();

Methods14

GetColliderReckfellObject
# GetCollider
C#
public ReckfellObject GetCollider(int collisionIndex = 0);

Returns the colliding body's attached ReckfellObject given a collision index (the deepest collision by default), if a collision occurred.

Parameters
NameTypeDefault
collisionIndexint0
Returns ReckfellObject
GetColliderIdulong
# GetColliderId
C#
public ulong GetColliderId(int collisionIndex = 0);

Returns the unique instance ID of the colliding body's attached ReckfellObject given a collision index (the deepest collision by default), if a collision occurred. See ReckfellObject.GetInstanceId.

Parameters
NameTypeDefault
collisionIndexint0
Returns ulong
GetColliderRidRid
# GetColliderRid
C#
public Rid GetColliderRid(int collisionIndex = 0);

Returns the colliding body's Rid used by the PhysicsServer3D given a collision index (the deepest collision by default), if a collision occurred.

Parameters
NameTypeDefault
collisionIndexint0
Returns Rid
GetColliderShapeint
# GetColliderShape
C#
public int GetColliderShape(int collisionIndex = 0);

Returns the colliding body's shape index given a collision index (the deepest collision by default), if a collision occurred. See CollisionObject3D.

Parameters
NameTypeDefault
collisionIndexint0
Returns int
GetColliderVelocityVector3
# GetColliderVelocity
C#
public Vector3 GetColliderVelocity(int collisionIndex = 0);

Returns the colliding body's velocity given a collision index (the deepest collision by default), if a collision occurred.

Parameters
NameTypeDefault
collisionIndexint0
Returns Vector3
GetCollisionCountint
# GetCollisionCount
C#
public int GetCollisionCount();

Returns the number of detected collisions.

Returns int
GetCollisionDepthfloat
# GetCollisionDepth
C#
public float GetCollisionDepth(int collisionIndex = 0);

Returns the length of overlap along the collision normal given a collision index (the deepest collision by default), if a collision occurred.

Parameters
NameTypeDefault
collisionIndexint0
Returns float
GetCollisionLocalShapeint
# GetCollisionLocalShape
C#
public int GetCollisionLocalShape(int collisionIndex = 0);

Returns the moving object's colliding shape given a collision index (the deepest collision by default), if a collision occurred.

Parameters
NameTypeDefault
collisionIndexint0
Returns int
GetCollisionNormalVector3
# GetCollisionNormal
C#
public Vector3 GetCollisionNormal(int collisionIndex = 0);

Returns the colliding body's shape's normal at the point of collision given a collision index (the deepest collision by default), if a collision occurred.

Parameters
NameTypeDefault
collisionIndexint0
Returns Vector3
GetCollisionPointVector3
# GetCollisionPoint
C#
public Vector3 GetCollisionPoint(int collisionIndex = 0);

Returns the point of collision in global coordinates given a collision index (the deepest collision by default), if a collision occurred.

Parameters
NameTypeDefault
collisionIndexint0
Returns Vector3
GetCollisionSafeFractionfloat
# GetCollisionSafeFraction
C#
public float GetCollisionSafeFraction();

Returns the maximum fraction of the motion that can occur without a collision, between 0 and 1.

Returns float
GetCollisionUnsafeFractionfloat
# GetCollisionUnsafeFraction
C#
public float GetCollisionUnsafeFraction();

Returns the minimum fraction of the motion needed to collide, if a collision occurred, between 0 and 1.

Returns float
GetRemainderVector3
# GetRemainder
C#
public Vector3 GetRemainder();

Returns the moving object's remaining movement vector.

Returns Vector3
GetTravelVector3
# GetTravel
C#
public Vector3 GetTravel();

Returns the moving object's travel before collision.

Returns Vector3
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.