PhysicalBone

Inherits: PhysicsBody < CollisionObject < Spatial < Node < Object

Description

Warning: With a non-uniform scale this node will probably not function as expected. Please make sure to keep its scale uniform (i.e. the same on all axes), and change the size(s) of its collision shape(s) instead.

Properties

Transform

body_offset

Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )

float

bounce

0.0

float

friction

1.0

float

gravity_scale

1.0

Transform

joint_offset

Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )

JointType

joint_type

0

float

mass

1.0

float

weight

9.8

Methods

void

apply_central_impulse ( Vector3 impulse )

void

apply_impulse ( Vector3 position, Vector3 impulse )

int

get_bone_id ( ) const

bool

get_simulate_physics ( )

bool

is_simulating_physics ( )

bool

is_static_body ( )


Enumerations

enum JointType:

JointType JOINT_TYPE_NONE = 0

JointType JOINT_TYPE_PIN = 1

JointType JOINT_TYPE_CONE = 2

JointType JOINT_TYPE_HINGE = 3

JointType JOINT_TYPE_SLIDER = 4

JointType JOINT_TYPE_6DOF = 5


Property Descriptions

Transform body_offset = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )

There is currently no description for this property. Please help us by contributing one!


float bounce = 0.0

  • void set_bounce ( float value )

  • float get_bounce ( )

There is currently no description for this property. Please help us by contributing one!


float friction = 1.0

  • void set_friction ( float value )

  • float get_friction ( )

There is currently no description for this property. Please help us by contributing one!


float gravity_scale = 1.0

  • void set_gravity_scale ( float value )

  • float get_gravity_scale ( )

There is currently no description for this property. Please help us by contributing one!


Transform joint_offset = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )

There is currently no description for this property. Please help us by contributing one!


JointType joint_type = 0

There is currently no description for this property. Please help us by contributing one!


float mass = 1.0

  • void set_mass ( float value )

  • float get_mass ( )

There is currently no description for this property. Please help us by contributing one!


float weight = 9.8

  • void set_weight ( float value )

  • float get_weight ( )

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

void apply_central_impulse ( Vector3 impulse )

There is currently no description for this method. Please help us by contributing one!


void apply_impulse ( Vector3 position, Vector3 impulse )

There is currently no description for this method. Please help us by contributing one!


int get_bone_id ( ) const

There is currently no description for this method. Please help us by contributing one!


bool get_simulate_physics ( )

There is currently no description for this method. Please help us by contributing one!


bool is_simulating_physics ( )

There is currently no description for this method. Please help us by contributing one!


bool is_static_body ( )

There is currently no description for this method. Please help us by contributing one!