Api Box
class

Box

public class Box

A single hitbox on the model. This can be a box, sphere or capsule.

Properties

Name Type Description
Name String
SurfaceName String
Bone Bone
Tags ITagSet
Shape Object Either a Sphere, Capsule or BBox
RandomPointInside Vector3 Get a random point inside this hitbox
RandomPointOnEdge Vector3 Get a random point on the edge this hitbox
Assembly: Sandbox.Engine Declaring Type: HitboxSet Full Name: Sandbox.HitboxSet.Box