API

Interface IMotionControllerButtonMeshMap

A helper-interface for the 3 meshes needed for controller button animation The meshes are provided to the _lerpButtonTransform function to calculate the current position of the value mesh

interface IMotionControllerButtonMeshMap {
    pressedMesh: AbstractMesh;
    unpressedMesh: AbstractMesh;
    valueMesh: AbstractMesh;
}
Index
pressedMesh: AbstractMesh

the mesh that defines the pressed value mesh position. This is used to find the max-position of this button

unpressedMesh: AbstractMesh

the mesh that defines the unpressed value mesh position. This is used to find the min (or initial) position of this button

valueMesh: AbstractMesh

The mesh that will be changed when value changes