Spline Components
OKO Web Client 2.24.1 - CSP 4.19.0
This guide will assist you in adding a Spline Component to an Entity on OKO Web.
Splines are mathematical curves that are used to create smooth, continuous shapes or paths. In OKO, Spline Components can be used to create curved paths for objects to follow, such as the trajectory of a moving object or the path of a camera through a space. They are particularly useful for creating smooth and natural-looking movements.
Instructions for OKO Web
To add a Spline Component select it from the list of Components.
Adding the Spline Component will add a Default Spline to the Entity. This will have three waypoints already defined, with points at the start, middle and end of the curve.
You can manually add waypoints by selecting the + button or remove them by selecting the trashcan icon next to a waypoint.
You can also adjust the waypoints by modifying their X, Y, and Z translations or using the transform gizmo. The X, Y, and Z values for the waypoints represent a 1-unit translation in each axis, relative to the location of the Entity to which the Spline Component belongs. Using the Script Component, you can add assets to the Spline and animate them along the Spline Path.
That’s it for Spline Components!