Physics
S&box includes a full 3D and 2D physics system powered by the Source 2 engine, with great performance and stability. Rigidbodies, colliders, joints, raycasting, and trigger volumes are all usable through Components on GameObjects.
S&box includes a full 3D and 2D physics system powered by the Source 2 engine, with great performance and stability. Rigidbodies, colliders, joints, raycasting, and trigger volumes are all usable through Components on GameObjects.
In This Section
- ๐ฏ Tracing โ Raycasting and shape traces (ray, sphere, box) with collision rules and tag filtering
- ๐ช Triggers โ Detect when objects enter or exit a volume, without blocking movement
- ๐ช Physics Events โ Hook into the physics step with
PrePhysicsStepandPostPhysicsStep
Related
- Player Controller โ Physics-based character controller component
- Terrain Materials โ Physics surface properties for terrain
Referenced API
Canonical API pages mentioned in this guide.
A struct describing an origin and direction
No summary available.
No summary available.
Represents a sphere.
A physics surface. This is applied to each PhysicsShape and controls its physical properties and physics related sounds.
Terrain renders heightmap based terrain.