Skip to content

Locomotion

Josh Stovall edited this page Dec 19, 2020 · 2 revisions

Locomotion()

Move the user around their Reality().

Parameters

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

Options

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
});

Links

Clone this wiki locally