Part of StarfallEx namespace
๐ External
PhysObj:calculateVelocityOffset(impulse, position)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Calculates the linear and angular velocities on the center of mass for an offset impulse. The outputs can be directly passed to PhysObj:addVelocity and PhysObj:addAngleVelocity, respectively.
Parameters
| Name | Type | Description |
|---|---|---|
impulse | Vector | The impulse acting on the object in world coordinates (kg*source_unit/s) |
position | Vector | The location of the impulse in world coordinates |
Returns
| Type | Description |
|---|---|
Vector | The calculated linear velocity from the impulse on the physics object's center of mass in source_unit/s. (World frame) |
Vector | The calculated angular velocity from the impulse on the physics object's center of mass in degrees/s. (Local frame) |
Examples
No examples available.
Used In
No usages found in the codebase.