public class Sandbox.HitboxSet.Box
A single hitbox on the model. This can be a box, sphere or capsule.
Related Guides
Broader workflow and conceptual references connected to this API.
Attributes are the bridge to pass information around the CPU to the GPU, like Variables, Textures or entire Buffers.
A Component is added to a GameObject to provide functionality. This functionality can vary wildly.
The mount system is extensible - anyone can write a mount to add support for a new game or engine and contribute it to s&box via pull request. A mount detects a game's install directory via Steam, scans its files, and converts assets into s&box compatible assets, all at runtime.
We try to keep as close to standard web styles as possible - but not every property is implemented. We'll use this page to highlight any differences.
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.
Properties
Showing 7 properties
public Sandbox.BoneCollection.Bone Sandbox.HitboxSet.Box.Bone { get; set; }
public string Sandbox.HitboxSet.Box.Name { get; set; }
public Vector3 Sandbox.HitboxSet.Box.RandomPointInside { get; set; }
Get a random point inside this hitbox
public Vector3 Sandbox.HitboxSet.Box.RandomPointOnEdge { get; set; }
Get a random point on the edge this hitbox
public object Sandbox.HitboxSet.Box.Shape { get; set; }
Either a Sphere, Capsule or BBox
public string Sandbox.HitboxSet.Box.SurfaceName { get; set; }
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | global |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.HitboxSet.Box |