PhysicalBone

Inherits: PhysicsBody < CollisionObject < Spatial < Node < Object

Properties

Transformbody_offsetTransform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
floatbounce0.0
floatfriction1.0
floatgravity_scale1.0
Transformjoint_offsetTransform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
JointTypejoint_type0
floatmass1.0
floatweight9.8

Methods

voidapply_central_impulse ( Vector3 impulse )
voidapply_impulse ( Vector3 position, Vector3 impulse )
intget_bone_id ( ) const
boolget_simulate_physics ( )
boolis_simulating_physics ( )
boolis_static_body ( )

Enumerations

enum JointType:

  • JOINT_TYPE_NONE = 0
  • JOINT_TYPE_PIN = 1
  • JOINT_TYPE_CONE = 2
  • JOINT_TYPE_HINGE = 3
  • JOINT_TYPE_SLIDER = 4
  • JOINT_TYPE_6DOF = 5

Property Descriptions

DefaultTransform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
Setterset_body_offset(value)
Getterget_body_offset()

Default0.0
Setterset_bounce(value)
Getterget_bounce()

Default1.0
Setterset_friction(value)
Getterget_friction()

Default1.0
Setterset_gravity_scale(value)
Getterget_gravity_scale()

DefaultTransform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
Setterset_joint_offset(value)
Getterget_joint_offset()

Default0
Setterset_joint_type(value)
Getterget_joint_type()

Default1.0
Setterset_mass(value)
Getterget_mass()

Default9.8
Setterset_weight(value)
Getterget_weight()

Method Descriptions

  • void apply_central_impulse ( Vector3 impulse )


  • int get_bone_id ( ) const

  • bool get_simulate_physics ( )

  • bool is_simulating_physics ( )

  • bool is_static_body ( )