Skip to content

Auto Hand Model

eisclimber edited this page Feb 11, 2024 · 2 revisions

Auto Hand Model

class in ExPresSXR.Rig / Extends MonoBehavior
Component added via Component Menu

Description

The Auto Hand Model detects and displays the currently used controller as well as providing an optional animated hand model. It is used to represent the hand/controller of the XR Rig.
There are in total four versions, two for for the for each hand, one having collisions and one doesn't.

Members

Public Properties

  • HandModelMode handModelMode: Determines which model is displayed.
  • InputDeviceCharacteristics controllerCharacteristics: Characteristics of the controller to search for, which is used to get the correct controller for the correct hand.
  • List<GameObject> controllerModels: A list of models from which the correct model for the used controller when is chosen handModelMode is set to Controller or Both. If no model was found for the controller a generic model will be shown.
  • GameObject handModel: The model that is displayed and animated when handModelMode is set to Hand or Both.
  • GameObject customModel: A custom model that is shown when handModelMode is set to Custom.
  • Transform currentAttach: (Readonly) The Transform that is used as attach point for XRGrabInteractables will be attached to.
  • bool modelCollisionsEnabled: Completely disables collisions with the hand/controller models during runtime. Overwrites the functionality of _collisionsEnabled.
  • bool collisionsCurrentlyEnabled: Temporary en-/disables collisions if _modelCollisionsEnabled is true. Will be controlled by the HandController.
    To disable collisions completely use _modelCollisionsEnabled instead.

Enum

  • HandModelMode: Can be used to differentiate which model is displayed at the hand.

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally