public sealed class Sandbox.BoxCollider : Sandbox.Collider
Defines a box collider.
Related Guides
Broader workflow and conceptual references connected to this API.
A trigger is a collider that detects when other physics objects enter or exit it, without blocking their movement. They're useful for things like pickup zones, death planes, checkpoints, and area detection.
The scope based system works by creating a snapshot of a change set when the scope is entered and another one when the scope is disposed of. The system will automatically take care of restoring the state on undo/redo.
S&box uses a scene system to create games. We feel this is the easiest system for people to pick up, while still being powerful.
S&box uses a scene system, similar to Godot and Unity. Scenes are JSON files on disk that are fast to load and switch between.
Constructors
Showing 1 constructors
public BoxCollider()
No results match this filter.
Properties
Showing 2 properties
public Vector3 Sandbox.BoxCollider.Center { get; set; }
The center of the box relative to this GameObject
public Vector3 Sandbox.BoxCollider.Scale { get; set; }
The size of the box, from corner to corner.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.BoxCollider |