API ReferenceSandbox
HitboxSetBuilderclass
Builds a named set of model hitboxes.
object→HitboxSetBuilder
Methods4
Showing 4 methods
public Sandbox.ModelHitboxBuilder AddBox(string name, string boneName, BBox bounds)
Adds a box hitbox in bone-local space.
| Parameter | Type | Description |
|---|---|---|
| name | string | The hitbox name. |
| boneName | string | The bone the hitbox follows. |
| bounds | BBox | The box bounds relative to the bone. |
public Sandbox.ModelHitboxBuilder AddCapsule(string name, string boneName, Capsule capsule)
Adds a capsule hitbox in bone-local space.
| Parameter | Type | Description |
|---|---|---|
| name | string | The hitbox name. |
| boneName | string | The bone the hitbox follows. |
| capsule | Capsule | The capsule relative to the bone. |
public Sandbox.ModelHitboxBuilder AddSphere(string name, string boneName, Sandbox.Sphere sphere)
Adds a sphere hitbox in bone-local space.
| Parameter | Type | Description |
|---|---|---|
| name | string | The hitbox name. |
| boneName | string | The bone the hitbox follows. |
| sphere | Sphere | The sphere relative to the bone. |
public Sandbox.HitboxSetBuilder WithName(string name)
| Parameter | Type | Description |
|---|---|---|
| name | string | The hitbox set name. |
No results match this filter.
Properties1
Showing 1 properties
public string Sandbox.HitboxSetBuilder.Name { get; set; }
The name of the hitbox set.
Returns:
string—No results match this filter.