Shape:getOffset

Edit

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

x, y, z, angle, ax, ay, az = Shape:getOffset()

Arguments

None

Returns

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.

See also