Collider:applyForce
EditApplies a force to the Collider.
Arguments
Name | Type | Description |
x | number | The x component of the force to apply. |
y | number | The y component of the force to apply. |
z | number | The z component of the force to apply. |
Returns
Nothing
Arguments
Name | Type | Description |
x | number | The x component of the force to apply. |
y | number | The y component of the force to apply. |
z | number | The z component of the force to apply. |
px | number | The x position to apply the force at, in world coordinates. |
py | number | The y position to apply the force at, in world coordinates. |
pz | number | The z position to apply the force at, in world coordinates. |
Returns
Nothing
Arguments
Name | Type | Description |
force | Vec3 | The force vector to apply. |
position | Vec3 | The position to apply the force at, in world coordinates. |
Returns
Nothing
Notes
If the Collider is asleep, it will need to be woken up with Collider:setAwake
for this function to have any affect.