Documentation: PhysicsJointComponent
Jump to navigation
Jump to search
Name | Type | Initial Value | Example Range | Description |
---|---|---|---|---|
Members | ||||
nail_to_wall | bool | false | ||
grid_joint | bool | false | if 1, will do a grid joint that works correctly with a body when it is destroyed / chipped away | |
breakable | bool | false | if 1, will break if theres a force too strong | |
body1_id | int | 0 | ||
body2_id | int | 0 | ||
pos_x | float | 0 | [0, 3.5] | |
pos_y | float | 0 | [0, 3.5] | |
delta_x | float | 0 | [-10, 10] | For mouse joint only ... moves the mouse joint by *dt |
delta_y | float | 0 | [-10, 10] | For mouse joint only ... moves the mouse joint by *dt |
mMotorEnabled | bool | false | enable motor, by setting this to true | |
mMotorSpeed | float | 0 | [0, 20] | if enabled this gets set to speed |
mMaxMotorTorque | float | 1 | max torque for motor | |
Custom data types | ||||
type | JOINT_TYPE::Enum | REVOLUTE_JOINT | Enum - JOINT_TYPE | |
Privates | ||||
mJoint | b2Joint* |