Interface IMotionControllerButtonMeshMap
interface IMotionControllerButtonMeshMap {
pressedMesh: AbstractMesh;
unpressedMesh: AbstractMesh;
valueMesh: AbstractMesh;
}
pressedMesh: AbstractMesh;
unpressedMesh: AbstractMesh;
valueMesh: AbstractMesh;
}
Properties
pressed Mesh
the mesh that defines the pressed value mesh position. This is used to find the max-position of this button
unpressed Mesh
the mesh that defines the unpressed value mesh position. This is used to find the min (or initial) position of this button
value Mesh
The mesh that will be changed when value changes
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