Locomotion

Auto Navigate (teleport+locomotion)



Set NAVmesh bound
Create BP Character, name as AutoNavigateCharacter
Add component camera, motioncontroller left and right
image.png
set capsule height and radius to 1 (let player close to correct height while still have collision)
image.png
To event graph:
node value 1000 by typing To Vector (float)
image.png
Continue to make the path for finding navigation:
Get Path Point, then promote variable to SET path points
image.png

Create a function, called Navigate
To navigate from current point to target point, by using the path found above
GET node by get a copy from path points node
image.png
Continue (Scale value determine how fast it moves to the point)
image.png
Error tolerance as 10, mean the leniency between 2 values

Back to event tick
Set >-= value greater than 1
image.png


Drag the BP in scene, set player 0
image.png
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.