s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Common Structs
chevron_left API Reference
category
Common Structs
data_objectAnglesdata_objectBBoxdata_objectCapsuledata_objectColordata_objectCurvedata_objectFrustumdata_objectGradientdata_objectLinedata_objectMatrixdata_objectPlanedata_objectRaydata_objectRectdata_objectRotationdata_objectSpheredata_objectTransformdata_objectTriangledata_objectVector2data_objectVector3data_objectVector4
Common Structs

deployed_code (global) 12

Angles
struct
Euler angles. Unlike a Rotation, Euler angles can represent multiple revolutions (rotations) around an axis, but suffer from issues like gimbal lock and lack of a defined "up" vector. Use Rotation for most cases.
BBox
struct
An Axis Aligned Bounding Box.
Capsule
struct
A capsule object, defined by 2 points and a radius. A capsule is a cylinder with round ends (inset half spheres on each end).
Color
struct
Represents a color using 4 floats (rgba), with 0-1 range.
Line
struct
Represents a line in 3D space.
Matrix
struct
Represents a 4x4 matrix.
Ray
struct
A struct describing an origin and direction
Rotation
struct
Represents a Quaternion rotation. Can be interpreted as a direction unit vector (x,y,z) + rotation around the direction vector (w) which represents the up direction. Unlike Angles, this cannot store multiple revolutions around an axis.
Transform
struct
A struct containing a position, rotation and scale. This is commonly used in engine to describe entity position, bone position and scene object position.
Vector2
struct
A 2-dimensional vector. Typically represents a position, size, or direction in 2D space.
Vector3
struct
A 3-dimentional vector. Typically represents a position, size, or direction in 3D space.
Vector4
struct
A 4-dimensional vector/point.

deployed_code Sandbox 7

Curve
struct
Describes a curve, which can have multiple key frames.
Frustum
struct
Represents a frustum.
Gradient
struct
Describes a gradient between multiple colors
Plane
struct
Represents a plane.
Rect
struct
Represents a rectangle.
Sphere
struct
Represents a sphere.
Triangle
struct
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter