API reference
API reference
Select your platform
No SDKs available
No versions available

PoseUtils Class

Tools for working with Unity Poses.

Static Member Functions

Assigns a Pose to a given transform.
Parameters
transform
The transform to which apply the pose.
pose
The desired pose.
space
If the pose should be applied to the local position/rotation or world position/rotation.
Extract the position/rotation of a given transform.
Parameters
transform
The transform from which to extract the pose.
space
If the desired position/rotation is the world or local one.
Returns
A Pose containing the position/rotation of the transform.
Compose two poses, applying the first to the second one.
Parameters
a
First pose to compose.
b
Pose to compose over the first one.
result
A Pose with the two operands applied.
static Pose Multiply
( in Pose a,
in Pose b )
Compose two poses, applying the provided one on top of the caller.
Parameters
a
Pose to compose upon.
b
Pose to compose over the first one.
Compose two poses, applying the caller on top of the provided pose.
Parameters
a
Pose to compose upon.
b
Pose to compose over the first one.
Moves the calling pose towards a target one using interpolation.
Parameters
from
Original pose to interpolate from
to
Target pose for the interpolation.
t
Interpolation factor, normalized but will not be clamped.
Interpolation between two poses.
Parameters
from
From pose.
to
To pose.
t
Interpolation factor, normalized but will not be clamped.
result
A Pose between a and b
static void Inverse
( in Pose a,
ref Pose result )
static void Invert
( this ref Pose a )
static void CopyFrom
( this ref Pose to,
in Pose from )
Get the position/rotation difference between two transforms.
Unaffected by scale.
Parameters
from
The base transform.
to
The target transform.
Returns
A Pose indicating the position/rotation change
Get the position/rotation difference between a transform and a pose.
Unaffected by scale.
Parameters
from
The base transform.
to
The target pose.
Returns
A Pose indicating the delta.
Get the position/rotation difference between a transform and a pose.
Unaffected by scale.
Parameters
from
The base transform.
to
The target pose.
result
Output: The pose with the delta
Get the position/rotation difference between two poses.
Unaffected by scale.
Parameters
from
The base pose.
to
The target pose.
Returns
A Pose indicating the delta.
Get the position/rotation difference between two transforms.
Affected by the scale of from.
Parameters
from
The base transform.
to
The target transform.
Returns
Output: The pose with the delta
Get the position/rotation difference between a transform and a pose.
Affected by the scale of from.
Parameters
from
The base transform.
to
The target pose.
Returns
The pose with the delta
Get the world position/rotation of a relative position.
Unaffected by scale.
Parameters
reference
The transform in which the offset is local.
offset
The offset from the reference.
Returns
A Pose in world units.
Get the world position/rotation of a relative position.
Affected by the scale of the transform.
Parameters
relativeTo
The transform in which the offset is local.
offset
The offset from the reference.
Returns
A Pose in world units.
Rotate a pose around an axis.
Parameters
pose
The pose to mirror.
normal
The direction of the mirror.
tangent
The tangent of the mirror.
Returns
A mirrored pose.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon