API Reference

Common Structs

19 types

Type Name Description
struct Angles Euler angles. Unlike a Rotation, Euler angles can represent multiple revolutions (rotations) around an axis, but suffer
struct BBox An Axis Aligned Bounding Box.
struct Capsule A capsule object, defined by 2 points and a radius. A capsule is a cylinder with round ends (inset half spheres on each
struct Color Represents a color using 4 floats (rgba), with 0-1 range.
struct Color32 A 32bit color, commonly used by things like vertex buffers. The functionality on this is purposely left min
struct Cone A tapered shape between two points with a radius at each end. Supports cones and cylinders, with flat ends.
struct Line Represents a line in 3D space.
struct Plane Sandbox Represents a plane.
struct Ray A struct describing an origin and direction
struct RealTimeSince Sandbox A convenience struct to easily measure time since an event last happened, based on GlobalNow. Typical usage would see yo
struct RealTimeUntil Sandbox A convenience struct to easily manage a time countdown, based on GlobalNow. Typical usage would see you assigning to a v
struct Rotation Represents a Quaternion rotation. Can be interpreted as a direction unit vector (x,y,z) + rotation around the direction
struct Sphere Sandbox Represents a sphere.
struct TimeSince Sandbox A convenience struct to easily measure time since an event last happened, based on Now. Typical usage would see you assi
struct TimeUntil Sandbox A convenience struct to easily manage a time countdown, based on Now. Typical usage would see you assigning to a variabl
struct Transform A struct containing a position, rotation and scale. This is commonly used in engine to describe entity position, bone po
struct Vector2 A 2-dimensional vector. Typically represents a position, size, or direction in 2D space.
struct Vector3 A 3-dimentional vector. Typically represents a position, size, or direction in 3D space.
struct Vector4 A 4-dimensional vector/point.