-
Notifications
You must be signed in to change notification settings - Fork 1
Locomotion
Josh Stovall edited this page Dec 19, 2020
·
2 revisions
Move the user around their Reality()
.
Name | Type | Options | Description |
---|---|---|---|
at |
object | object to move | |
type |
string |
fly teleport walk
|
mode of transport |
direction |
object | object to bind direction | |
speed |
object | object to bind speed |
fly
(live demo)
move in 3 dimensions
new XR.Locomotion({
type:'fly',
bind: controller.right.trigger,
});
teleport
(live demo)
point & click style
new XR.Locomotion({
type:'teleport',
bind: controller.right.trigger,
});
walk
(live demo)
move along a plane
new XR.Locomotion({
type: 'walk',
bind: controller.left.joystick
});