Class Leap::Unity::Space::ITransformerExtensions

class Leap.Unity.Space.ITransformerExtensions

Public Static Functions

static void WorldSpaceUnwarp (this ITransformer transformer, Vector3 worldWarpedPosition, Quaternion worldWarpedRotation, out Vector3 worldRectilinearPosition, out Quaternion worldRectilinearRotation)

Given a transformer and a world-space position and rotation, this method interprets that position and rotation as being within the transformers “warped” space (e.g. cylindrical space for LeapCylindricalSpace) and outputs the world-space position and rotation that would result if the space was no longer warped, i.e., standard Unity rectilinear space.