Collider:setPosition

Edit

Sets the position of the Collider.



Set the position of the Collider using numbers.

Arguments

NameTypeDescription
xnumber The x position of the Collider, in meters.
ynumber The y position of the Collider, in meters.
znumber The z position of the Collider, in meters.

Returns

Nothing

Set the position of the Collider using a vector.

Arguments

NameTypeDescription
positionVec3 The position of the Collider, in meters.

Returns

Nothing

See also