reckfellENGINE

PhysicsCastMotionResult2D

Stores the result of a shape motion cast query.

On this page
class PhysicsCastMotionResult2DReckfellSharpInherits RefCounted

Stores the result of a shape motion cast query.

This class contains the safe and unsafe fractions computed by PhysicsDirectSpaceState2D.CastMotionInto.

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

Constructors1

PhysicsCastMotionResult2DConstructor
# PhysicsCastMotionResult2D
C#
public PhysicsCastMotionResult2D();

Properties2

SafeFractionProperty
# SafeFraction
C#
public float SafeFraction { get; }

The maximum fraction of the motion that can be made without a collision.

UnsafeFractionProperty
# UnsafeFraction
C#
public float UnsafeFraction { get; }

The minimum fraction of the distance that must be moved for a collision.

Methods2

GetSafeFractionfloat
# GetSafeFraction
C#
public float GetSafeFraction();
Returns float
GetUnsafeFractionfloat
# GetUnsafeFraction
C#
public float GetUnsafeFraction();
Returns float
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.