Skip to main content
The WorldDirection enum represents the six cardinal directions available in the RollingQuest 3D world. Unlike the Face enum, which describes sides relative to an individual block’s local geometry, WorldDirection expresses movement or orientation relative to the global world coordinate system. You use it whenever you need to specify the direction an entity should move, the axis along which a force is applied, or the orientation of a path segment — in short, any time the API needs to know “which way in the world” rather than “which face of this block.”

Values

Usage Example

The example below moves an entity one step in the Right direction, then applies a push force Up when a trigger fires:
You can also use WorldDirection to define patrol paths for enemies: