Skip to main content
The Face enum identifies one of the six sides of a block cube in the RollingQuest world. Every block is an axis-aligned cube, so exactly six faces exist: Up, Down, Left, Right, Front, and Back. You supply a Face value wherever the API targets a specific side of a block — for instance, when positioning the camera zoom-in effect with Flyby.startZoomAt(), or when querying or modifying the texture and properties of individual block faces.

Values

Usage Example

The example below starts a flyby zoom aimed at the top face of a specific block, then demonstrates checking the landing face of the ball after a move event.
You can also use Face values when iterating over all sides of a block to apply a texture or check a property:
When the ball lands on a block, the collision callback typically reports which face was hit, letting you respond differently depending on whether the ball rolled onto the top, slid into a side, or struck the bottom: