PhysicsDirectBodyState3D¶
Inherits: Object
Inherited By: PhysicsDirectBodyState3DExtension
Provides direct access to a physics body in the PhysicsServer3D.
Description¶
Provides direct access to a physics body in the PhysicsServer3D, allowing safe changes to physics properties. This object is passed via the direct state callback of RigidBody3D, and is intended for changing the direct state of that body. See RigidBody3D._integrate_forces.
Tutorials¶
Properties¶
Methods¶
void |
add_constant_central_force ( Vector3 force=Vector3(0, 0, 0) ) |
void |
add_constant_force ( Vector3 force, Vector3 position=Vector3(0, 0, 0) ) |
void |
add_constant_torque ( Vector3 torque ) |
void |
apply_central_force ( Vector3 force=Vector3(0, 0, 0) ) |
void |
apply_central_impulse ( Vector3 impulse=Vector3(0, 0, 0) ) |
void |
apply_force ( Vector3 force, Vector3 position=Vector3(0, 0, 0) ) |
void |
apply_impulse ( Vector3 impulse, Vector3 position=Vector3(0, 0, 0) ) |
void |
apply_torque ( Vector3 torque ) |
void |
apply_torque_impulse ( Vector3 impulse ) |
get_constant_force ( ) const |
|
get_constant_torque ( ) const |
|
get_contact_collider ( int contact_idx ) const |
|
get_contact_collider_id ( int contact_idx ) const |
|
get_contact_collider_object ( int contact_idx ) const |
|
get_contact_collider_position ( int contact_idx ) const |
|
get_contact_collider_shape ( int contact_idx ) const |
|
get_contact_collider_velocity_at_position ( int contact_idx ) const |
|
get_contact_count ( ) const |
|
get_contact_impulse ( int contact_idx ) const |
|