Seamless locomotion
If you're making an immersive game or experience, that experience is going to be much more convincing to the player if their sense of the space around them isn't constantly being broken up by teleport actions. Let's take a look at a way to handle seamless locomotion in space.
Setting up inputs for seamless locomotion
Ordinarily, we would probably allow users to select the sort of locomotion scheme they're comfortable with in an options menu, but since our current character doesn't do anything but move around, and we haven't done anything with the left controller yet, we can use it to drive our seamless locomotion scheme.
Let's add a pair of input axis mappings for the left controller's thumbstick:
- Open
Project Settings
|Engine
|Input.
- Hit the
+
button besideBindings
|Axis Mappings
twice to add two new axis mappings. - Name them
MoveForward
, andMoveRight
. - Bind
MoveForward
toMotionController (L) Thumbstick Y.
- Set its
Scale
to-1.0
.
- Bind
MoveRight
toMotionController (L) Thumbstick...