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

float

_get_angular_velocity ( ) virtual const

Vector2

_get_center_of_mass ( ) virtual const

Vector2

_get_center_of_mass_local ( ) virtual const

Vector2

_get_constant_force ( ) virtual const

float

_get_constant_torque ( ) virtual const

RID

_get_contact_collider ( int contact_idx ) virtual const

int

_get_contact_collider_id ( int contact_idx ) virtual const

Object

_get_contact_collider_object ( int contact_idx ) virtual const

Vector2

_get_contact_collider_position ( int contact_idx ) virtual const

int

_get_contact_collider_shape ( int contact_idx ) virtual const

Vector2

_get_contact_collider_velocity_at_position ( int contact_idx ) virtual const

int

_get_contact_count ( ) virtual const

Vector2

_get_contact_impulse ( int contact_idx ) virtual const

Vector2

_get_contact_local_normal ( int contact_idx ) virtual const

Vector2

_get_contact_local_position ( int contact_idx ) virtual const

int

_get_contact_local_shape ( int contact_idx ) virtual const

Vector2

_get_contact_local_velocity_at_position ( int contact_idx ) virtual const

float

_get_inverse_inertia ( ) virtual const

float

_get_inverse_mass ( ) virtual const

Vector2

_get_linear_velocity ( ) virtual const

PhysicsDirectSpaceState2D

_get_space_state ( ) virtual

float

_get_step ( ) virtual const

float

_get_total_angular_damp ( ) virtual const

Vector2

_get_total_gravity ( ) virtual const

float

_get_total_linear_damp ( ) virtual const

Transform2D

_get_transform ( ) virtual const

Vector2

_get_velocity_at_local_position ( Vector2 local_position ) virtual const

void

_integrate_forces ( ) virtual

bool

_is_sleeping ( ) virtual const

void

_set_angular_velocity ( float velocity ) virtual

void

_set_constant_force ( Vector2 force ) virtual

void

_set_constant_torque ( float torque ) virtual

void

_set_linear_velocity ( Vector2 velocity ) virtual

void

_set_sleep_state ( bool enabled ) virtual

void

_set_transform ( Transform2D transform ) virtual


Method DescriptionsΒΆ

void _add_constant_central_force ( Vector2 force ) virtual

There is currently no description for this method. Please help us by contributing one!


void _add_constant_force ( Vector2 force, Vector2 position ) virtual

There is currently no description for this method. Please help us by contributing one!


void _add_constant_torque ( float torque ) virtual

There is currently no description for this method. Please help us by contributing one!


void _apply_central_force ( Vector2 force ) virtual

There is currently no description for this method. Please help us by contributing one!


void _apply_central_impulse ( Vector2 impulse ) virtual

There is currently no description for this method. Please help us by contributing one!


void _apply_force ( Vector2 force, Vector2 position ) virtual

There is currently no description for this method. Please help us by contributing one!


void _apply_impulse ( Vector2 impulse, Vector2 position ) virtual

There is currently no description for this method. Please help us by contributing one!


void _apply_torque ( float torque ) virtual

There is currently no description for this method. Please help us by contributing one!


void _apply_torque_impulse ( float impulse ) virtual

There is currently no description for this method. Please help us by contributing one!


float _get_angular_velocity ( ) virtual const

There is currently no description for this method. Please help us by contributing one!


Vector2 _get_center_of_mass ( ) virtual const

There is currently no description for this method. Please help us by contributing one!


Vector2 _get_center_of_mass_local ( ) virtual const

There is currently no description for this method. Please help us by contributing one!


Vector2 _get_constant_force ( ) virtual const

There is currently no description for this method. Please help us by contributing one!


float _get_constant_torque ( ) virtual const

There is currently no description for this method. Please help us by contributing one!


RID _get_contact_collider ( int contact_idx ) virtual const

There is currently no description for this method. Please help us by contributing one!


int _get_contact_collider_id ( int contact_idx ) virtual const

There is currently no description for this method. Please help us by contributing one!


Object _get_contact_collider_object ( int contact_idx ) virtual const

There is currently no description for this method. Please help us by contributing one!


Vector2 _get_contact_collider_position ( int contact_idx ) virtual const

There is currently no description for this method. Please help us by contributing one!


int _get_contact_collider_shape ( int contact_idx ) virtual const

There is currently no description for this method. Please help us by contributing one!


Vector2 _get_contact_collider_velocity_at_position ( int contact_idx ) virtual const

There is currently no description for this method. Please help us by contributing one!


int _get_contact_count ( ) virtual const

There is currently no description for this method. Please help us by contributing one!


Vector2 _get_contact_impulse ( int contact_idx ) virtual const

There is currently no description for this method. Please help us by contributing one!


Vector2 _get_contact_local_normal ( int contact_idx ) virtual const

There is currently no description for this method. Please help us by contributing one!


Vector2 _get_contact_local_position ( int contact_idx ) virtual const

There is currently no description for this method. Please help us by contributing one!


int _get_contact_local_shape ( int contact_idx ) virtual const

There is currently no description for this method. Please help us by contributing one!


Vector2 _get_contact_local_velocity_at_position ( int contact_idx ) virtual const

There is currently no description for this method. Please help us by contributing one!


float _get_inverse_inertia ( ) virtual const

There is currently no description for this method. Please help us by contributing one!


float _get_inverse_mass ( ) virtual const

There is currently no description for this method. Please help us by contributing one!


Vector2 _get_linear_velocity ( ) virtual const

There is currently no description for this method. Please help us by contributing one!


PhysicsDirectSpaceState2D _get_space_state ( ) virtual

There is currently no description for this method. Please help us by contributing one!


float _get_step ( ) virtual const

There is currently no description for this method. Please help us by contributing one!


float _get_total_angular_damp ( ) virtual const

There is currently no description for this method. Please help us by contributing one!


Vector2 _get_total_gravity ( ) virtual const

There is currently no description for this method. Please help us by contributing one!


float _get_total_linear_damp ( ) virtual const

There is currently no description for this method. Please help us by contributing one!


Transform2D _get_transform ( ) virtual const

There is currently no description for this method. Please help us by contributing one!


Vector2 _get_velocity_at_local_position ( Vector2 local_position ) virtual const

There is currently no description for this method. Please help us by contributing one!


void _integrate_forces ( ) virtual

There is currently no description for this method. Please help us by contributing one!


bool _is_sleeping ( ) virtual const

There is currently no description for this method. Please help us by contributing one!


void _set_angular_velocity ( float velocity ) virtual

There is currently no description for this method. Please help us by contributing one!


void _set_constant_force ( Vector2 force ) virtual

There is currently no description for this method. Please help us by contributing one!


void _set_constant_torque ( float torque ) virtual

There is currently no description for this method. Please help us by contributing one!


void _set_linear_velocity ( Vector2 velocity ) virtual

There is currently no description for this method. Please help us by contributing one!


void _set_sleep_state ( bool enabled ) virtual

There is currently no description for this method. Please help us by contributing one!


void _set_transform ( Transform2D transform ) virtual

There is currently no description for this method. Please help us by contributing one!