Collider:moveKinematic

Edit

Moves the collider towards a destination pose. The velocity of the collider is set so that the collider reaches the destination in dt seconds.



Arguments

NameTypeDescription
xnumber The x position of the target, in meters.
ynumber The y position of the target, in meters.
znumber The z position of the target, in meters.
anglenumber The angle of the target orientation.
axnumber The x component of the target axis of rotation.
aynumber The y component of the target axis of rotation.
aznumber The z component of the target axis of rotation.
dtnumber How long it should take to reach the destination.

Returns

Nothing

Arguments

NameTypeDescription
positionvector The position of the target, in meters.
orientationquaternion The target orientation.
dtnumber How long it should take to reach the destination.

Returns

Nothing

Notes

The collider doesn't stop when it reaches the destination, this is just a shorthand for setting its velocity.

See also