PhysicsDirectBodyState2DExtension
Provides virtual methods that can be overridden to create custom PhysicsDirectBodyState2D implementations.
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
public PhysicsDirectBodyState2DExtension();Methods48
_AddConstantCentralForcevoid
public virtual void _AddConstantCentralForce(Vector2 force);Overridable version of PhysicsDirectBodyState2D.AddConstantCentralForce.
| Name | Type | Default |
|---|---|---|
force | Vector2 | — |
_AddConstantForcevoid
public virtual void _AddConstantForce(Vector2 force, Vector2 position);Overridable version of PhysicsDirectBodyState2D.AddConstantForce.
| Name | Type | Default |
|---|---|---|
force | Vector2 | — |
position | Vector2 | — |
_AddConstantTorquevoid
public virtual void _AddConstantTorque(float torque);Overridable version of PhysicsDirectBodyState2D.AddConstantTorque.
| Name | Type | Default |
|---|---|---|
torque | float | — |
_ApplyCentralForcevoid
public virtual void _ApplyCentralForce(Vector2 force);Overridable version of PhysicsDirectBodyState2D.ApplyCentralForce.
| Name | Type | Default |
|---|---|---|
force | Vector2 | — |
_ApplyCentralImpulsevoid
public virtual void _ApplyCentralImpulse(Vector2 impulse);Overridable version of PhysicsDirectBodyState2D.ApplyCentralImpulse.
| Name | Type | Default |
|---|---|---|
impulse | Vector2 | — |
_ApplyForcevoid
public virtual void _ApplyForce(Vector2 force, Vector2 position);Overridable version of PhysicsDirectBodyState2D.ApplyForce.
| Name | Type | Default |
|---|---|---|
force | Vector2 | — |
position | Vector2 | — |
_ApplyImpulsevoid
public virtual void _ApplyImpulse(Vector2 impulse, Vector2 position);Overridable version of PhysicsDirectBodyState2D.ApplyImpulse.
| Name | Type | Default |
|---|---|---|
impulse | Vector2 | — |
position | Vector2 | — |
_ApplyTorquevoid
public virtual void _ApplyTorque(float torque);Overridable version of PhysicsDirectBodyState2D.ApplyTorque.
| Name | Type | Default |
|---|---|---|
torque | float | — |
_ApplyTorqueImpulsevoid
public virtual void _ApplyTorqueImpulse(float impulse);Overridable version of PhysicsDirectBodyState2D.ApplyTorqueImpulse.
| Name | Type | Default |
|---|---|---|
impulse | float | — |
_GetAngularVelocityfloat
public virtual float _GetAngularVelocity();Implement to override the behavior of PhysicsDirectBodyState2D.AngularVelocity and its respective getter.
float_GetCenterOfMassVector2
public virtual Vector2 _GetCenterOfMass();Implement to override the behavior of PhysicsDirectBodyState2D.CenterOfMass and its respective getter.
Vector2_GetCenterOfMassLocalVector2
public virtual Vector2 _GetCenterOfMassLocal();Implement to override the behavior of PhysicsDirectBodyState2D.CenterOfMassLocal and its respective getter.
Vector2_GetCollisionLayeruint
public virtual uint _GetCollisionLayer();uint_GetCollisionMaskuint
public virtual uint _GetCollisionMask();uint_GetConstantForceVector2
public virtual Vector2 _GetConstantForce();Overridable version of PhysicsDirectBodyState2D.GetConstantForce.
Vector2_GetConstantTorquefloat
public virtual float _GetConstantTorque();Overridable version of PhysicsDirectBodyState2D.GetConstantTorque.
float_GetContactColliderRid
public virtual Rid _GetContactCollider(int contactIdx);Overridable version of PhysicsDirectBodyState2D.GetContactCollider.
| Name | Type | Default |
|---|---|---|
contactIdx | int | — |
Rid_GetContactColliderIdulong
public virtual ulong _GetContactColliderId(int contactIdx);Overridable version of PhysicsDirectBodyState2D.GetContactColliderId.
| Name | Type | Default |
|---|---|---|
contactIdx | int | — |
ulong_GetContactColliderObjectReckfellObject
public virtual ReckfellObject _GetContactColliderObject(int contactIdx);Overridable version of PhysicsDirectBodyState2D.GetContactColliderObject.
| Name | Type | Default |
|---|---|---|
contactIdx | int | — |
ReckfellObject_GetContactColliderPositionVector2
public virtual Vector2 _GetContactColliderPosition(int contactIdx);Overridable version of PhysicsDirectBodyState2D.GetContactColliderPosition.
| Name | Type | Default |
|---|---|---|
contactIdx | int | — |
Vector2_GetContactColliderShapeint
public virtual int _GetContactColliderShape(int contactIdx);Overridable version of PhysicsDirectBodyState2D.GetContactColliderShape.
| Name | Type | Default |
|---|---|---|
contactIdx | int | — |
int_GetContactColliderVelocityAtPositionVector2
public virtual Vector2 _GetContactColliderVelocityAtPosition(int contactIdx);Overridable version of PhysicsDirectBodyState2D.GetContactColliderVelocityAtPosition.
| Name | Type | Default |
|---|---|---|
contactIdx | int | — |
Vector2_GetContactCountint
public virtual int _GetContactCount();Overridable version of PhysicsDirectBodyState2D.GetContactCount.
int_GetContactImpulseVector2
public virtual Vector2 _GetContactImpulse(int contactIdx);Overridable version of PhysicsDirectBodyState2D.GetContactImpulse.
| Name | Type | Default |
|---|---|---|
contactIdx | int | — |
Vector2_GetContactLocalNormalVector2
public virtual Vector2 _GetContactLocalNormal(int contactIdx);Overridable version of PhysicsDirectBodyState2D.GetContactLocalNormal.
| Name | Type | Default |
|---|---|---|
contactIdx | int | — |
Vector2_GetContactLocalPositionVector2
public virtual Vector2 _GetContactLocalPosition(int contactIdx);Overridable version of PhysicsDirectBodyState2D.GetContactLocalPosition.
| Name | Type | Default |
|---|---|---|
contactIdx | int | — |
Vector2_GetContactLocalShapeint
public virtual int _GetContactLocalShape(int contactIdx);Overridable version of PhysicsDirectBodyState2D.GetContactLocalShape.
| Name | Type | Default |
|---|---|---|
contactIdx | int | — |
int_GetContactLocalVelocityAtPositionVector2
public virtual Vector2 _GetContactLocalVelocityAtPosition(int contactIdx);Overridable version of PhysicsDirectBodyState2D.GetContactLocalVelocityAtPosition.
| Name | Type | Default |
|---|---|---|
contactIdx | int | — |
Vector2_GetInverseInertiafloat
public virtual float _GetInverseInertia();Implement to override the behavior of PhysicsDirectBodyState2D.InverseInertia and its respective getter.
float_GetInverseMassfloat
public virtual float _GetInverseMass();Implement to override the behavior of PhysicsDirectBodyState2D.InverseMass and its respective getter.
float_GetLinearVelocityVector2
public virtual Vector2 _GetLinearVelocity();Implement to override the behavior of PhysicsDirectBodyState2D.LinearVelocity and its respective getter.
Vector2_GetSpaceStatePhysicsDirectSpaceState2D
public virtual PhysicsDirectSpaceState2D _GetSpaceState();Overridable version of PhysicsDirectBodyState2D.GetSpaceState.
PhysicsDirectSpaceState2D_GetStepfloat
public virtual float _GetStep();Implement to override the behavior of PhysicsDirectBodyState2D.Step and its respective getter.
float_GetTotalAngularDampfloat
public virtual float _GetTotalAngularDamp();Implement to override the behavior of PhysicsDirectBodyState2D.TotalAngularDamp and its respective getter.
float_GetTotalGravityVector2
public virtual Vector2 _GetTotalGravity();Implement to override the behavior of PhysicsDirectBodyState2D.TotalGravity and its respective getter.
Vector2_GetTotalLinearDampfloat
public virtual float _GetTotalLinearDamp();Implement to override the behavior of PhysicsDirectBodyState2D.TotalLinearDamp and its respective getter.
float_GetTransformTransform2D
public virtual Transform2D _GetTransform();Implement to override the behavior of PhysicsDirectBodyState2D.Transform and its respective getter.
Transform2D_GetVelocityAtLocalPositionVector2
public virtual Vector2 _GetVelocityAtLocalPosition(Vector2 localPosition);Overridable version of PhysicsDirectBodyState2D.GetVelocityAtLocalPosition.
| Name | Type | Default |
|---|---|---|
localPosition | Vector2 | — |
Vector2_IntegrateForcesvoid
public virtual void _IntegrateForces();Overridable version of PhysicsDirectBodyState2D.IntegrateForces.
_IsSleepingbool
public virtual bool _IsSleeping();Implement to override the behavior of PhysicsDirectBodyState2D.Sleeping and its respective getter.
bool_SetAngularVelocityvoid
public virtual void _SetAngularVelocity(float velocity);Implement to override the behavior of PhysicsDirectBodyState2D.AngularVelocity and its respective setter.
| Name | Type | Default |
|---|---|---|
velocity | float | — |
_SetCollisionLayervoid
public virtual void _SetCollisionLayer(uint layer);| Name | Type | Default |
|---|---|---|
layer | uint | — |
_SetCollisionMaskvoid
public virtual void _SetCollisionMask(uint mask);| Name | Type | Default |
|---|---|---|
mask | uint | — |
_SetConstantForcevoid
public virtual void _SetConstantForce(Vector2 force);Overridable version of PhysicsDirectBodyState2D.SetConstantForce.
| Name | Type | Default |
|---|---|---|
force | Vector2 | — |
_SetConstantTorquevoid
public virtual void _SetConstantTorque(float torque);Overridable version of PhysicsDirectBodyState2D.SetConstantTorque.
| Name | Type | Default |
|---|---|---|
torque | float | — |
_SetLinearVelocityvoid
public virtual void _SetLinearVelocity(Vector2 velocity);Implement to override the behavior of PhysicsDirectBodyState2D.LinearVelocity and its respective setter.
| Name | Type | Default |
|---|---|---|
velocity | Vector2 | — |
_SetSleepStatevoid
public virtual void _SetSleepState(bool enabled);Implement to override the behavior of PhysicsDirectBodyState2D.Sleeping and its respective setter.
| Name | Type | Default |
|---|---|---|
enabled | bool | — |
_SetTransformvoid
public virtual void _SetTransform(Transform2D transform);Implement to override the behavior of PhysicsDirectBodyState2D.Transform and its respective setter.
| Name | Type | Default |
|---|---|---|
transform | Transform2D | — |