Jump
The Jump node is a special node that allows you to jump to another node in the environment. This is useful for creating non-linear experiences where the user can jump to different parts of the environment based on their choices.
Creating a Jump Node
To create a Jump node, follow these steps:
- Right-click in the
Hierarchy
window and selectCreate Empty
. - Rename the new object to
Jump
. - Add a
Off Mesh Link
component to the object by clickingAdd Component
in theInspector
. - Add a
Off Mesh Link Handler
component to the object by clickingAdd Component
in theInspector
. - Specify the Start and End points for the jump (see methods below).
- Change the
Navigation Area
toJump
in theOff Mesh Link
component. - Modify the speed and height of the jump in the
Off Mesh Link Handler
component. - Set the
Move Type
toJump
in theOff Mesh Link Handler
component.
You need a start and end point for the jump to work properly. The start and end points should be close to the ground and not too far apart.
Start and End Points
To set the start and end points for the jump, you can create two empty objects in the scene and position them where you want the jump to start and end. You can then assign these objects to the Start Point
and End Point
fields in the Off Mesh Link
component.
Make sure the start and end points are close to the ground slightly above the ground level.