reckfellENGINE

PhysicsTestMotionResult2D

Describes the motion and collision result from PhysicsServer2D.body_test_motion.

On this page
class PhysicsTestMotionResult2DReckfellSharpInherits RefCounted

Describes the motion and collision result from PhysicsServer2D.BodyTestMotion.

Describes the motion and collision result from PhysicsServer2D.BodyTestMotion.

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

Constructors1

PhysicsTestMotionResult2DConstructor
# PhysicsTestMotionResult2D
C#
public PhysicsTestMotionResult2D();

Methods13

GetColliderReckfellObject
# GetCollider
C#
public ReckfellObject GetCollider();

Returns the colliding body's attached ReckfellObject, if a collision occurred.

Returns ReckfellObject
GetColliderIdulong
# GetColliderId
C#
public ulong GetColliderId();

Returns the unique instance ID of the colliding body's attached ReckfellObject, if a collision occurred. See ReckfellObject.GetInstanceId.

Returns ulong
GetColliderRidRid
# GetColliderRid
C#
public Rid GetColliderRid();

Returns the colliding body's Rid used by the PhysicsServer2D, if a collision occurred.

Returns Rid
GetColliderShapeint
# GetColliderShape
C#
public int GetColliderShape();

Returns the colliding body's shape index, if a collision occurred. See CollisionObject2D.

Returns int
GetColliderVelocityVector2
# GetColliderVelocity
C#
public Vector2 GetColliderVelocity();

Returns the colliding body's velocity, if a collision occurred.

Returns Vector2
GetCollisionDepthfloat
# GetCollisionDepth
C#
public float GetCollisionDepth();

Returns the length of overlap along the collision normal, if a collision occurred.

Returns float
GetCollisionLocalShapeint
# GetCollisionLocalShape
C#
public int GetCollisionLocalShape();

Returns the moving object's colliding shape, if a collision occurred.

Returns int
GetCollisionNormalVector2
# GetCollisionNormal
C#
public Vector2 GetCollisionNormal();

Returns the colliding body's shape's normal at the point of collision, if a collision occurred.

Returns Vector2
GetCollisionPointVector2
# GetCollisionPoint
C#
public Vector2 GetCollisionPoint();

Returns the point of collision in global coordinates, if a collision occurred.

Returns Vector2
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
GetRemainderVector2
# GetRemainder
C#
public Vector2 GetRemainder();

Returns the moving object's remaining movement vector.

Returns Vector2
GetTravelVector2
# GetTravel
C#
public Vector2 GetTravel();

Returns the moving object's travel before collision.

Returns Vector2
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.