Collider:getPose
EditReturns the position and orientation of the Collider.
x, y, z, angle, ax, ay, az = Collider:getPose()
Arguments
None
Returns
Name | Type | Description |
x | number | The x position of the Collider, in meters. |
y | number | The y position of the Collider, in meters. |
z | number | The z position of the Collider, in meters. |
angle | number | The number of radians the Collider is rotated around its axis of rotation. |
ax | number | The x component of the axis of rotation. |
ay | number | The y component of the axis of rotation. |
az | number | The z component of the axis of rotation. |
Notes
If World:interpolate
has been called, this returns an interpolated pose between the last two physics updates.