Skip to content

IK Transform Mapping

eisclimber edited this page Nov 3, 2024 · 5 revisions

IK Transform Mapping

class in ExPresSXR.InverseKinematics / Extends MonoBehavior

Description

Class that stores values and provides functionality for tracking an IK traget to another transform. For an Implementation use the Components IK Body Presence or IK Position Tracker.

Members

Public Properties

  • Transform vrTarget: The Transform that provides the target location. Use the Main Camera for the head and the hand's InteractionController for the hands.
  • Transform ikTarget: The Target of an Constraint that will be moved with the 'vrTarget'.
  • Vector3 _positionOffset: Additional positional offset that is applied to the 'ikTarget''s position. Use to align the hands 'hotspot' to the model.
  • Quaternion _rotationOffset: Additional positional offset that is applied to the _ikTarget's position. Use to align the tracked object's rotation.

Public Functions

  • void UpdateMapping(): Tracks the 'ikTarget'to the 'vrTarget'.
  • void InitializeMapping(Transform presenceRoot, bool moveRoot): Initializes the mapping. Should be called during OnStart() or OnAwake().

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally