Interface IMotionControllerLayout
Hierarchy
- IMotionControllerLayout
Index
Properties
asset PathSearch playground for assetPath
Path to load the assets. Usually relative to the base path
componentsSearch playground for components
Available components (unsorted)
Type declaration
-
[componentId: string]: { gamepadIndices: { button?: number; xAxis?: number; yAxis?: number }; rootNodeName: string; touchPointNodeName?: string; type: MotionControllerComponentType; visualResponses: {} }
A map of component Ids
-
gamepad
Indices: { button?: number; xAxis?: number; yAxis?: number } The indices of this component in the gamepad object
-
Optional button?: number
Index of button
-
Optional x
Axis?: number If available, index of x-axis
-
Optional y
Axis?: number If available, index of y-axis
-
-
root
Node Name: string The mesh's root node name
-
Optional touch
Point Node Name?: string If touch enabled, what is the name of node to display user feedback
-
type: MotionControllerComponentType
The type of input the component outputs
-
visual
Responses: {} Animation definitions for this model
-
[stateKey: string]: { componentProperty: "xAxis" | "yAxis" | "button" | "state"; maxNodeName?: string; minNodeName?: string; states: MotionControllerComponentStateType[]; valueNodeName?: string; valueNodeProperty: "transform" | "visibility" }
-
component
Property: "xAxis" | "yAxis" | "button" | "state" What property will be animated
-
Optional max
Node Name?: string Max movement node
-
Optional min
Node Name?: string Minimum movement node
-
states: MotionControllerComponentStateType[]
What states influence this visual response
-
Optional value
Node Name?: string Base node name to move. Its position will be calculated according to the min and max nodes
-
value
Node Property: "transform" | "visibility" Type of animation - movement or visibility
-
-
-
gamepad MappingSearch playground for gamepadMapping
Is it xr standard mapping or not
root Node NameSearch playground for rootNodeName
Base root node of this entire model
select Component IdSearch playground for selectComponentId
Defines the main button component id
The schema of motion controller layout. No object will be initialized using this interface This is used just to define the profile.