reckfellENGINE

PhysicsDirectBodyState2DExtension

Provides virtual methods that can be overridden to create custom PhysicsDirectBodyState2D implementations.

On this page
class PhysicsDirectBodyState2DExtensionReckfellSharpInherits PhysicsDirectBodyState2D

Provides virtual methods that can be overridden to create custom PhysicsDirectBodyState2D implementations.

This class extends PhysicsDirectBodyState2D by providing additional virtual methods that can be overridden. When these methods are overridden, they will be called instead of the internal methods of the physics server. Intended for use with ReckfellExtension to create custom implementations of PhysicsDirectBodyState2D.

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

Constructors1

PhysicsDirectBodyState2DExtensionConstructor
# PhysicsDirectBodyState2DExtension
C#
public PhysicsDirectBodyState2DExtension();

Methods48

_AddConstantCentralForcevoid
# _AddConstantCentralForce
C#
public virtual void _AddConstantCentralForce(Vector2 force);

Overridable version of PhysicsDirectBodyState2D.AddConstantCentralForce.

Parameters
NameTypeDefault
forceVector2—
_AddConstantForcevoid
# _AddConstantForce
C#
public virtual void _AddConstantForce(Vector2 force, Vector2 position);

Overridable version of PhysicsDirectBodyState2D.AddConstantForce.

Parameters
NameTypeDefault
forceVector2—
positionVector2—
_AddConstantTorquevoid
# _AddConstantTorque
C#
public virtual void _AddConstantTorque(float torque);

Overridable version of PhysicsDirectBodyState2D.AddConstantTorque.

Parameters
NameTypeDefault
torquefloat—
_ApplyCentralForcevoid
# _ApplyCentralForce
C#
public virtual void _ApplyCentralForce(Vector2 force);

Overridable version of PhysicsDirectBodyState2D.ApplyCentralForce.

Parameters
NameTypeDefault
forceVector2—
_ApplyCentralImpulsevoid
# _ApplyCentralImpulse
C#
public virtual void _ApplyCentralImpulse(Vector2 impulse);

Overridable version of PhysicsDirectBodyState2D.ApplyCentralImpulse.

Parameters
NameTypeDefault
impulseVector2—
_ApplyForcevoid
# _ApplyForce
C#
public virtual void _ApplyForce(Vector2 force, Vector2 position);

Overridable version of PhysicsDirectBodyState2D.ApplyForce.

Parameters
NameTypeDefault
forceVector2—
positionVector2—
_ApplyImpulsevoid
# _ApplyImpulse
C#
public virtual void _ApplyImpulse(Vector2 impulse, Vector2 position);

Overridable version of PhysicsDirectBodyState2D.ApplyImpulse.

Parameters
NameTypeDefault
impulseVector2—
positionVector2—
_ApplyTorquevoid
# _ApplyTorque
C#
public virtual void _ApplyTorque(float torque);

Overridable version of PhysicsDirectBodyState2D.ApplyTorque.

Parameters
NameTypeDefault
torquefloat—
_ApplyTorqueImpulsevoid
# _ApplyTorqueImpulse
C#
public virtual void _ApplyTorqueImpulse(float impulse);

Overridable version of PhysicsDirectBodyState2D.ApplyTorqueImpulse.

Parameters
NameTypeDefault
impulsefloat—
_GetAngularVelocityfloat
# _GetAngularVelocity
C#
public virtual float _GetAngularVelocity();

Implement to override the behavior of PhysicsDirectBodyState2D.AngularVelocity and its respective getter.

Returns float
_GetCenterOfMassVector2
# _GetCenterOfMass
C#
public virtual Vector2 _GetCenterOfMass();

Implement to override the behavior of PhysicsDirectBodyState2D.CenterOfMass and its respective getter.

Returns Vector2
_GetCenterOfMassLocalVector2
# _GetCenterOfMassLocal
C#
public virtual Vector2 _GetCenterOfMassLocal();

Implement to override the behavior of PhysicsDirectBodyState2D.CenterOfMassLocal and its respective getter.

Returns Vector2
_GetCollisionLayeruint
# _GetCollisionLayer
C#
public virtual uint _GetCollisionLayer();
Returns uint
_GetCollisionMaskuint
# _GetCollisionMask
C#
public virtual uint _GetCollisionMask();
Returns uint
_GetConstantForceVector2
# _GetConstantForce
C#
public virtual Vector2 _GetConstantForce();

Overridable version of PhysicsDirectBodyState2D.GetConstantForce.

Returns Vector2
_GetConstantTorquefloat
# _GetConstantTorque
C#
public virtual float _GetConstantTorque();

Overridable version of PhysicsDirectBodyState2D.GetConstantTorque.

Returns float
_GetContactColliderRid
# _GetContactCollider
C#
public virtual Rid _GetContactCollider(int contactIdx);

Overridable version of PhysicsDirectBodyState2D.GetContactCollider.

Parameters
NameTypeDefault
contactIdxint—
Returns Rid
_GetContactColliderIdulong
# _GetContactColliderId
C#
public virtual ulong _GetContactColliderId(int contactIdx);

Overridable version of PhysicsDirectBodyState2D.GetContactColliderId.

Parameters
NameTypeDefault
contactIdxint—
Returns ulong
_GetContactColliderObjectReckfellObject
# _GetContactColliderObject
C#
public virtual ReckfellObject _GetContactColliderObject(int contactIdx);

Overridable version of PhysicsDirectBodyState2D.GetContactColliderObject.

Parameters
NameTypeDefault
contactIdxint—
Returns ReckfellObject
_GetContactColliderPositionVector2
# _GetContactColliderPosition
C#
public virtual Vector2 _GetContactColliderPosition(int contactIdx);

Overridable version of PhysicsDirectBodyState2D.GetContactColliderPosition.

Parameters
NameTypeDefault
contactIdxint—
Returns Vector2
_GetContactColliderShapeint
# _GetContactColliderShape
C#
public virtual int _GetContactColliderShape(int contactIdx);

Overridable version of PhysicsDirectBodyState2D.GetContactColliderShape.

Parameters
NameTypeDefault
contactIdxint—
Returns int
_GetContactColliderVelocityAtPositionVector2
# _GetContactColliderVelocityAtPosition
C#
public virtual Vector2 _GetContactColliderVelocityAtPosition(int contactIdx);

Overridable version of PhysicsDirectBodyState2D.GetContactColliderVelocityAtPosition.

Parameters
NameTypeDefault
contactIdxint—
Returns Vector2
_GetContactCountint
# _GetContactCount
C#
public virtual int _GetContactCount();

Overridable version of PhysicsDirectBodyState2D.GetContactCount.

Returns int
_GetContactImpulseVector2
# _GetContactImpulse
C#
public virtual Vector2 _GetContactImpulse(int contactIdx);

Overridable version of PhysicsDirectBodyState2D.GetContactImpulse.

Parameters
NameTypeDefault
contactIdxint—
Returns Vector2
_GetContactLocalNormalVector2
# _GetContactLocalNormal
C#
public virtual Vector2 _GetContactLocalNormal(int contactIdx);

Overridable version of PhysicsDirectBodyState2D.GetContactLocalNormal.

Parameters
NameTypeDefault
contactIdxint—
Returns Vector2
_GetContactLocalPositionVector2
# _GetContactLocalPosition
C#
public virtual Vector2 _GetContactLocalPosition(int contactIdx);

Overridable version of PhysicsDirectBodyState2D.GetContactLocalPosition.

Parameters
NameTypeDefault
contactIdxint—
Returns Vector2
_GetContactLocalShapeint
# _GetContactLocalShape
C#
public virtual int _GetContactLocalShape(int contactIdx);

Overridable version of PhysicsDirectBodyState2D.GetContactLocalShape.

Parameters
NameTypeDefault
contactIdxint—
Returns int
_GetContactLocalVelocityAtPositionVector2
# _GetContactLocalVelocityAtPosition
C#
public virtual Vector2 _GetContactLocalVelocityAtPosition(int contactIdx);

Overridable version of PhysicsDirectBodyState2D.GetContactLocalVelocityAtPosition.

Parameters
NameTypeDefault
contactIdxint—
Returns Vector2
_GetInverseInertiafloat
# _GetInverseInertia
C#
public virtual float _GetInverseInertia();

Implement to override the behavior of PhysicsDirectBodyState2D.InverseInertia and its respective getter.

Returns float
_GetInverseMassfloat
# _GetInverseMass
C#
public virtual float _GetInverseMass();

Implement to override the behavior of PhysicsDirectBodyState2D.InverseMass and its respective getter.

Returns float
_GetLinearVelocityVector2
# _GetLinearVelocity
C#
public virtual Vector2 _GetLinearVelocity();

Implement to override the behavior of PhysicsDirectBodyState2D.LinearVelocity and its respective getter.

Returns Vector2
_GetSpaceStatePhysicsDirectSpaceState2D
# _GetSpaceState
C#
public virtual PhysicsDirectSpaceState2D _GetSpaceState();

Overridable version of PhysicsDirectBodyState2D.GetSpaceState.

Returns PhysicsDirectSpaceState2D
_GetStepfloat
# _GetStep
C#
public virtual float _GetStep();

Implement to override the behavior of PhysicsDirectBodyState2D.Step and its respective getter.

Returns float
_GetTotalAngularDampfloat
# _GetTotalAngularDamp
C#
public virtual float _GetTotalAngularDamp();

Implement to override the behavior of PhysicsDirectBodyState2D.TotalAngularDamp and its respective getter.

Returns float
_GetTotalGravityVector2
# _GetTotalGravity
C#
public virtual Vector2 _GetTotalGravity();

Implement to override the behavior of PhysicsDirectBodyState2D.TotalGravity and its respective getter.

Returns Vector2
_GetTotalLinearDampfloat
# _GetTotalLinearDamp
C#
public virtual float _GetTotalLinearDamp();

Implement to override the behavior of PhysicsDirectBodyState2D.TotalLinearDamp and its respective getter.

Returns float
_GetTransformTransform2D
# _GetTransform
C#
public virtual Transform2D _GetTransform();

Implement to override the behavior of PhysicsDirectBodyState2D.Transform and its respective getter.

Returns Transform2D
_GetVelocityAtLocalPositionVector2
# _GetVelocityAtLocalPosition
C#
public virtual Vector2 _GetVelocityAtLocalPosition(Vector2 localPosition);

Overridable version of PhysicsDirectBodyState2D.GetVelocityAtLocalPosition.

Parameters
NameTypeDefault
localPositionVector2—
Returns Vector2
_IntegrateForcesvoid
# _IntegrateForces
C#
public virtual void _IntegrateForces();

Overridable version of PhysicsDirectBodyState2D.IntegrateForces.

_IsSleepingbool
# _IsSleeping
C#
public virtual bool _IsSleeping();

Implement to override the behavior of PhysicsDirectBodyState2D.Sleeping and its respective getter.

Returns bool
_SetAngularVelocityvoid
# _SetAngularVelocity
C#
public virtual void _SetAngularVelocity(float velocity);

Implement to override the behavior of PhysicsDirectBodyState2D.AngularVelocity and its respective setter.

Parameters
NameTypeDefault
velocityfloat—
_SetCollisionLayervoid
# _SetCollisionLayer
C#
public virtual void _SetCollisionLayer(uint layer);
Parameters
NameTypeDefault
layeruint—
_SetCollisionMaskvoid
# _SetCollisionMask
C#
public virtual void _SetCollisionMask(uint mask);
Parameters
NameTypeDefault
maskuint—
_SetConstantForcevoid
# _SetConstantForce
C#
public virtual void _SetConstantForce(Vector2 force);

Overridable version of PhysicsDirectBodyState2D.SetConstantForce.

Parameters
NameTypeDefault
forceVector2—
_SetConstantTorquevoid
# _SetConstantTorque
C#
public virtual void _SetConstantTorque(float torque);

Overridable version of PhysicsDirectBodyState2D.SetConstantTorque.

Parameters
NameTypeDefault
torquefloat—
_SetLinearVelocityvoid
# _SetLinearVelocity
C#
public virtual void _SetLinearVelocity(Vector2 velocity);

Implement to override the behavior of PhysicsDirectBodyState2D.LinearVelocity and its respective setter.

Parameters
NameTypeDefault
velocityVector2—
_SetSleepStatevoid
# _SetSleepState
C#
public virtual void _SetSleepState(bool enabled);

Implement to override the behavior of PhysicsDirectBodyState2D.Sleeping and its respective setter.

Parameters
NameTypeDefault
enabledbool—
_SetTransformvoid
# _SetTransform
C#
public virtual void _SetTransform(Transform2D transform);

Implement to override the behavior of PhysicsDirectBodyState2D.Transform and its respective setter.

Parameters
NameTypeDefault
transformTransform2D—
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.