Class Hitbox
Namespace: ValveResourceFormat.ResourceTypes.ModelData
Assembly: ValveResourceFormat.dll
Represents a hitbox for collision detection in a model.
csharp
public class HitboxInheritance
object ← Hitbox
Constructors
Hitbox(KVObject)
Initializes a new instance of the Hitbox class from KVObject data.
csharp
public Hitbox(KVObject data)Parameters
data KVObject
The KVObject containing hitbox information.
Properties
BoneName
Gets the name of the bone this hitbox is attached to.
csharp
public string BoneName { get; init; }Property Value
string
GroupId
Gets the group ID of the hitbox.
csharp
public int GroupId { get; init; }Property Value
int
MaxBounds
Gets the maximum bounds of the hitbox.
csharp
public Vector3 MaxBounds { get; init; }Property Value
MinBounds
Gets the minimum bounds of the hitbox.
csharp
public Vector3 MinBounds { get; init; }Property Value
Name
Gets the name of the hitbox.
csharp
public string Name { get; init; }Property Value
string
ShapeRadius
Gets the radius of the hitbox shape.
csharp
public float ShapeRadius { get; init; }Property Value
float
ShapeType
Gets the shape type of the hitbox.
csharp
public Hitbox.HitboxShape ShapeType { get; init; }Property Value
SurfaceProperty
Gets the surface property of the hitbox.
csharp
public string SurfaceProperty { get; init; }Property Value
string
TranslationOnly
Gets a value indicating whether this hitbox only supports translation.
csharp
public bool TranslationOnly { get; init; }Property Value
bool

