Shape:setPosition

Edit

Set the position of the Shape relative to its Collider.



Set the position of the Shape using numbers.

Arguments

NameTypeDescription
xnumber The x offset.
ynumber The y offset.
znumber The z offset.

Returns

Nothing

Set the position of the Shape using a vector.

Arguments

NameTypeDescription
positionVec3 The position.

Returns

Nothing

Notes

If the Shape isn't attached to a Collider, this will error.

See also