Table of Contents

Class Hitbox

Namespace
ValveResourceFormat.ResourceTypes.ModelData
Assembly
ValveResourceFormat.dll

Represents a hitbox for collision detection in a model.

public class Hitbox

Inheritance

Inherited Members

Constructors

Hitbox(KVObject)

Initializes a new instance of the ValveResourceFormat.ResourceTypes.ModelData.Hitbox class from ValveResourceFormat.Serialization.KeyValues.KVObject data.

public Hitbox(KVObject data)

Parameters

data KVObject

The ValveResourceFormat.Serialization.KeyValues.KVObject containing hitbox information.

Properties

BoneName

Gets the name of the bone this hitbox is attached to.

public string BoneName { get; init; }

Property Value

string

GroupId

Gets the group ID of the hitbox.

public int GroupId { get; init; }

Property Value

int

MaxBounds

Gets the maximum bounds of the hitbox.

public Vector3 MaxBounds { get; init; }

Property Value

Vector3

MinBounds

Gets the minimum bounds of the hitbox.

public Vector3 MinBounds { get; init; }

Property Value

Vector3

Name

Gets the name of the hitbox.

public string Name { get; init; }

Property Value

string

ShapeRadius

Gets the radius of the hitbox shape.

public float ShapeRadius { get; init; }

Property Value

float

ShapeType

Gets the shape type of the hitbox.

public Hitbox.HitboxShape ShapeType { get; init; }

Property Value

Hitbox.HitboxShape

SurfaceProperty

Gets the surface property of the hitbox.

public string SurfaceProperty { get; init; }

Property Value

string

TranslationOnly

Gets a value indicating whether this hitbox only supports translation.

public bool TranslationOnly { get; init; }

Property Value

bool