Shape:setOffset

Edit

Sets the local offset of the Shape. When the Shape is attached to a Collider, it will have this offset relative to the Collider.



Arguments

NameTypeDescription
xnumber The local x offset of the Shape, in meters.
ynumber The local y offset of the Shape, in meters.
znumber The local z offset of the Shape, in meters.
anglenumber The number of radians the Shape is rotated around its axis of rotation.
axnumber The x component of the axis of rotation.
aynumber The y component of the axis of rotation.
aznumber The z component of the axis of rotation.

Returns

Nothing

Arguments

NameTypeDescription
positionVec3 The local offset of the Shape, in meters.
rotationQuat The local rotation of the Shape, in meters.

Returns

Nothing

See also