Collider:applyForce

Applies a force to the Collider.

Collider:applyForce(x, y, z)

Arguments

NameTypeDescription
xnumberThe x component of the force to apply.
ynumberThe y component of the force to apply.
znumberThe z component of the force to apply.

Returns

Nothing


Collider:applyForce(x, y, z, px, py, pz)

Arguments

NameTypeDescription
xnumberThe x component of the force to apply.
ynumberThe y component of the force to apply.
znumberThe z component of the force to apply.
pxnumberThe x position to apply the force at, in world coordinates.
pynumberThe y position to apply the force at, in world coordinates.
pznumberThe z position to apply the force at, in world coordinates.

Returns

Nothing

See also