-
Notifications
You must be signed in to change notification settings - Fork 0
class_rigidbody
reduz edited this page Feb 23, 2014
·
12 revisions
####Inherits: PhysicsBody ####Category: Core
- void
_integrate_forces( PhysicsDirectBodyState state ) virtual - void
set_mode( int mode ) -
int
get_mode( ) const - void
set_mass( real mass ) -
real
get_mass( ) const - void
set_weight( real weight ) -
real
get_weight( ) const - void
set_friction( real friction ) -
real
get_friction( ) const - void
set_bounce( real bounce ) -
real
get_bounce( ) const - void
set_linear_velocity( Vector3 linear_velocity ) -
Vector3
get_linear_velocity( ) const - void
set_angular_velocity( Vector3 angular_velocity ) -
Vector3
get_angular_velocity( ) const - void
set_max_contacts_reported( int amount ) -
int
get_max_contacts_reported( ) const - void
set_use_custom_integrator( bool enable ) -
bool
is_using_custom_integrator( ) - void
set_contact_monitor( bool enabled ) -
bool
is_contact_monitor_enabled( ) const - void
set_use_continuous_collision_detection( bool enable ) -
bool
is_using_continuous_collision_detection( ) const - void
set_axis_velocity( Vector3 axis_velocity ) - void
apply_impulse( Vector3 pos, Vector3 impulse ) - void
set_active( bool active ) -
bool
is_active( ) const - void
set_can_sleep( bool able_to_sleep ) -
bool
is_able_to_sleep( ) const
-
body_enter( Object body ) -
body_enter_shape( int body_id, Object body, int body_shape, int local_shape ) -
body_exit( Object body ) -
body_exit_shape( int body_id, Object body, int body_shape, int local_shape )
- MODE_STATIC = 1
- MODE_KINEMATIC = 3
- MODE_RIGID = 0
- MODE_CHARACTER = 2