Documentation: PhysicsPickUpComponent
Jump to navigation
Jump to search
Name | Type | Initial Value | Example Range | Description |
---|---|---|---|---|
Members | ||||
pick_up_strength | float | 200 | ||
Custom data types | ||||
transform | types::xform | |||
original_left_joint_pos | vec2 | (-4, 7) | ||
original_right_joint_pos | vec2 | (4, 7) | ||
Privates | ||||
isBroken | bool | false | ||
leftJointPos | vec2 | (0, 0) | ||
rightJointPos | vec2 | (0, 0) | ||
leftJoint | b2WeldJoint* | |||
rightJoint | b2WeldJoint* |
Only the player entity has this component. The component does nothing unless a mod changes the magic number DESIGN_PLAYER_PICKUP_ENABLED
to true.
Once enabled, Alt + will pickup physics objects and repeating the key combination will throw the physics object in the direction of the cursor.
The feature doesn't work well, the pickup and throwing actions do nothing half the time, and after an object has been picked up it loses all entity collisions.