new Gamepad()
Creates new gamepad input object for first person controls
Methods
getOrientation() → {Ayce.Quaternion}
Returns orientation based on gamepad input
Returns:
xAxis
- Type
- Ayce.Quaternion
getPosition(orientation) → {Ayce.Vector3}
Returns position based on gamepad input
Parameters:
Name | Type | Description |
---|---|---|
orientation |
Ayce.Quaternion |
Returns:
position
- Type
- Ayce.Vector3