Skip to content

Latest commit

 

History

History
179 lines (107 loc) · 12.7 KB

class_physicsdirectbodystate.rst

File metadata and controls

179 lines (107 loc) · 12.7 KB

PhysicsDirectBodyState

Inherits: Object<class_object>

Inherited By: BulletPhysicsDirectBodyState<class_bulletphysicsdirectbodystate>

Category: Core

Brief Description

Member Functions

void add_force<class_PhysicsDirectBodyState_add_force> ( Vector3<class_vector3> force, Vector3<class_vector3> position )
void apply_impulse<class_PhysicsDirectBodyState_apply_impulse> ( Vector3<class_vector3> position, Vector3<class_vector3> j )
void apply_torqe_impulse<class_PhysicsDirectBodyState_apply_torqe_impulse> ( Vector3<class_vector3> j )
void apply_torque_impulse<class_PhysicsDirectBodyState_apply_torque_impulse> ( Vector3<class_vector3> j )
RID<class_rid> get_contact_collider<class_PhysicsDirectBodyState_get_contact_collider> ( int<class_int> contact_idx ) const
int<class_int> get_contact_collider_id<class_PhysicsDirectBodyState_get_contact_collider_id> ( int<class_int> contact_idx ) const
Object<class_object> get_contact_collider_object<class_PhysicsDirectBodyState_get_contact_collider_object> ( int<class_int> contact_idx ) const
Vector3<class_vector3> get_contact_collider_position<class_PhysicsDirectBodyState_get_contact_collider_position> ( int<class_int> contact_idx ) const
int<class_int> get_contact_collider_shape<class_PhysicsDirectBodyState_get_contact_collider_shape> ( int<class_int> contact_idx ) const
Vector3<class_vector3> get_contact_collider_velocity_at_position<class_PhysicsDirectBodyState_get_contact_collider_velocity_at_position> ( int<class_int> contact_idx ) const
int<class_int> get_contact_count<class_PhysicsDirectBodyState_get_contact_count> ( ) const
Vector3<class_vector3> get_contact_local_normal<class_PhysicsDirectBodyState_get_contact_local_normal> ( int<class_int> contact_idx ) const
Vector3<class_vector3> get_contact_local_position<class_PhysicsDirectBodyState_get_contact_local_position> ( int<class_int> contact_idx ) const
int<class_int> get_contact_local_shape<class_PhysicsDirectBodyState_get_contact_local_shape> ( int<class_int> contact_idx ) const
PhysicsDirectSpaceState<class_physicsdirectspacestate> get_space_state<class_PhysicsDirectBodyState_get_space_state> ( )
void integrate_forces<class_PhysicsDirectBodyState_integrate_forces> ( )

Member Variables

  • Vector3<class_vector3> angular_velocity - The angular velocity of the body.
  • Vector3<class_vector3> center_of_mass
  • Vector3<class_vector3> inverse_inertia - The inverse of the inertia of the body.
  • float<class_float> inverse_mass - The inverse of the mass of the body.
  • Vector3<class_vector3> linear_velocity - The linear velocity of the body.
  • Basis<class_basis> principal_inertia_axes
  • bool<class_bool> sleeping - true if this body is currently sleeping (not active).
  • float<class_float> step - The timestep (delta) used for the simulation.
  • float<class_float> total_angular_damp - The rate at which the body stops rotating, if there are not any other forces moving it.
  • Vector3<class_vector3> total_gravity - The total gravity vector being currently applied to this body.
  • float<class_float> total_linear_damp - The rate at which the body stops moving, if there are not any other forces moving it.
  • Transform<class_transform> transform - The transformation matrix of the body.

Member Function Description

  • void add_force ( Vector3<class_vector3> force, Vector3<class_vector3> position )
  • void apply_impulse ( Vector3<class_vector3> position, Vector3<class_vector3> j )
  • void apply_torqe_impulse ( Vector3<class_vector3> j )

This method is deprecated. Please use apply_torque_impulse<class_PhysicsDirectBodyState_apply_torque_impulse> instead.

  • void apply_torque_impulse ( Vector3<class_vector3> j )
  • RID<class_rid> get_contact_collider ( int<class_int> contact_idx ) const
  • int<class_int> get_contact_collider_id ( int<class_int> contact_idx ) const
  • Object<class_object> get_contact_collider_object ( int<class_int> contact_idx ) const
  • Vector3<class_vector3> get_contact_collider_position ( int<class_int> contact_idx ) const
  • int<class_int> get_contact_collider_shape ( int<class_int> contact_idx ) const
  • Vector3<class_vector3> get_contact_collider_velocity_at_position ( int<class_int> contact_idx ) const
  • int<class_int> get_contact_count ( ) const
  • Vector3<class_vector3> get_contact_local_normal ( int<class_int> contact_idx ) const
  • Vector3<class_vector3> get_contact_local_position ( int<class_int> contact_idx ) const
  • int<class_int> get_contact_local_shape ( int<class_int> contact_idx ) const
  • PhysicsDirectSpaceState<class_physicsdirectspacestate> get_space_state ( )
  • void integrate_forces ( )