menu_bookDocumentation

Math Types - s&box Documentation

calendar_today May 5, 2026 schedule ~1 min read person patrickjr verified 50

Official s&box documentation for Math Types including Vector3, Rotation, Angles, and related types. Vector3 represents 3D positions and directions with X, Y, Z components. Rotation uses quaternions for efficient rotation representation without gimbal lock. Angles provides yaw, pitch, roll in degrees for human-readable rotation. Transform combines position, rotation, and scale for object placement. MathX provides utility functions like Remap, Lerp, ExponentialDecay, SmoothDamp, and SpringDamp. Color and Color32 represent RGBA values. Ray represents a point and direction for intersection tests. BBox defines axis-aligned bounding boxes for collision and culling. These types support operator overloading for intuitive math syntax.

Was this helpful?