Api Sandbox ModelHitboxes
class

ModelHitboxes

public sealed class ModelHitboxes : Component

Hitboxes from a model

Constructors

ModelHitboxes()

Properties

Name Type Description
Renderer SkinnedModelRenderer The target SkinnedModelRenderer that holds the model/skeleton you want to take the hitboxes from.
Target GameObject The target GameObject to report in trace hits. If this is unset we'll defaault to the gameobject on which this component is.

Methods

Void Rebuild()
Void UpdatePositions()
Void AddHitbox(Hitbox hitbox)
Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.ModelHitboxes