ManualHitboxclass

A hitbox that can be placed manually on a GameObject, instead of coming from a model

objectComponentManualHitbox
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public sealed class Sandbox.ManualHitbox : Sandbox.Component

Constructors1

Showing 1 constructors

Methods2

Showing 2 methods

public void Rebuild()PUBLIC

Returns:void

public void UpdatePositions()PUBLICPER-FRAME

Returns:void

Properties6

Showing 6 properties

public float Sandbox.ManualHitbox.Radius { get; set; }PUBLICGETSET

Returns:float

public Sandbox.GameObject Sandbox.ManualHitbox.Target { get; set; }PUBLICGETSET

The target GameObject to report in trace hits. If this is unset we'll default to the gameobject on which this component is.

Returns:GameObject

On this page