PhysicsDirectBodyState

Inherits: Object

Inherited By: PhysicsDirectBodyStateSW

Category: Core

Brief Description

Member Functions

void

add_force ( Vector3 force, Vector3 pos )

void

apply_impulse ( Vector3 pos, Vector3 j )

Vector3

get_angular_velocity ( ) const

RID

get_contact_collider ( int contact_idx ) const

int

get_contact_collider_id ( int contact_idx ) const

Object

get_contact_collider_object ( int contact_idx ) const

Vector3

get_contact_collider_pos ( int contact_idx ) const

int

get_contact_collider_shape ( int contact_idx ) const

Vector3

get_contact_collider_velocity_at_pos ( int contact_idx ) const

int

get_contact_count ( ) const

Vector3

get_contact_local_normal ( int contact_idx ) const

Vector3

get_contact_local_pos ( int contact_idx ) const

int

get_contact_local_shape ( int contact_idx ) const

Vector3

get_inverse_inertia ( ) const

float

get_inverse_mass ( ) const

Vector3

get_linear_velocity ( ) const

PhysicsDirectSpaceState

get_space_state ( )

float

get_step ( ) const

float

get_total_angular_damp ( ) const

Vector3

get_total_gravity ( ) const

float

get_total_linear_damp ( ) const

Transform

get_transform ( ) const

void

integrate_forces ( )

bool

is_sleeping ( ) const

void

set_angular_velocity ( Vector3 velocity )

void

set_linear_velocity ( Vector3 velocity )

void

set_sleep_state ( bool enabled )

void

set_transform ( Transform transform )

Member Function Description

  • Vector3 get_angular_velocity ( ) const

  • RID get_contact_collider ( int contact_idx ) const

  • int get_contact_collider_id ( int contact_idx ) const

  • Object get_contact_collider_object ( int contact_idx ) const

  • Vector3 get_contact_collider_pos ( int contact_idx ) const

  • int get_contact_collider_shape ( int contact_idx ) const

  • Vector3 get_contact_collider_velocity_at_pos ( int contact_idx ) const

  • int get_contact_count ( ) const

  • Vector3 get_contact_local_normal ( int contact_idx ) const

  • Vector3 get_contact_local_pos ( int contact_idx ) const

  • int get_contact_local_shape ( int contact_idx ) const

  • Vector3 get_inverse_inertia ( ) const

  • float get_inverse_mass ( ) const

  • Vector3 get_linear_velocity ( ) const

  • float get_step ( ) const

  • float get_total_angular_damp ( ) const

  • Vector3 get_total_gravity ( ) const

  • float get_total_linear_damp ( ) const

  • void integrate_forces ( )

  • bool is_sleeping ( ) const

  • void set_angular_velocity ( Vector3 velocity )

  • void set_linear_velocity ( Vector3 velocity )

  • void set_sleep_state ( bool enabled )