A fully simulated rigid body driven by the physics engine (mass, forces, impulses).
Inherits from: PhysicsBody
Lua full name: lysa.nodes.RigidBody
|
| nil | set_density (density: number) |
| | Sets the density of the body, used to compute mass from the collision shape volume. More...
|
| |
| nil | set_gravity_factor (factor: number) |
| | Sets the gravity multiplier (0.0 disables gravity, 1.0 = normal, negative = inverted). More...
|
| |
| nil | add_force (force: lysa.float3, position: lysa.float3|nil) |
| | Applies a continuous force for the next physics step at the center of mass, or at a local position if given. More...
|
| |
| nil | add_impulse (impulse: lysa.float3) |
| | Applies an instantaneous impulse at the center of mass (changes velocity immediately). More...
|
| |
|
| lysa.float3 | velocity |
| | Current linear velocity in world space.
|
| |
| number | mass |
| | The total mass of the body in kilograms.
|
| |