Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
PhysicsDirectBodyState2DExtension¶
Inherits: PhysicsDirectBodyState2D < Object
Provides virtual methods that can be overridden to create custom PhysicsDirectBodyState2D implementations.
Description¶
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 GDExtension to create custom implementations of PhysicsDirectBodyState2D.
Methods¶
void |
_add_constant_central_force ( Vector2 force ) virtual |
void |
_add_constant_force ( Vector2 force, Vector2 position ) virtual |
void |
_add_constant_torque ( float torque ) virtual |
void |
_apply_central_force ( Vector2 force ) virtual |
void |
_apply_central_impulse ( Vector2 impulse ) virtual |
void |
_apply_force ( Vector2 force, Vector2 position ) virtual |
void |
_apply_impulse ( Vector2 impulse, Vector2 position ) virtual |
void |
_apply_torque ( float torque ) virtual |
void |
_apply_torque_impulse ( float impulse ) virtual |
_get_angular_velocity ( ) virtual const |
|
_get_center_of_mass ( ) virtual const |
|
_get_center_of_mass_local ( ) virtual const |
|
_get_constant_force ( ) virtual const |
|
_get_constant_torque ( ) virtual const |
|
_get_contact_collider ( int contact_idx ) virtual const |
|
_get_contact_collider_id ( int contact_idx ) virtual const |
|
_get_contact_collider_object ( int contact_idx ) virtual |