Boxclass

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

objectBox
Namespace
global
Assembly
Sandbox.Engine
Declaration
public class Sandbox.HitboxSet.Box

Properties7

Showing 7 properties

public string Sandbox.HitboxSet.Box.Name { get; set; }PUBLICGETSET

Returns:string

public Vector3 Sandbox.HitboxSet.Box.RandomPointInside { get; set; }PUBLICGETSET

Get a random point inside this hitbox

Returns:Vector3

public Vector3 Sandbox.HitboxSet.Box.RandomPointOnEdge { get; set; }PUBLICGETSET

Get a random point on the edge this hitbox

Returns:Vector3

public object Sandbox.HitboxSet.Box.Shape { get; set; }PUBLICGETSET

Either a Sphere, Capsule or BBox

Returns:object

public string Sandbox.HitboxSet.Box.SurfaceName { get; set; }PUBLICGETSET

Returns:string

On this page