Class Hitbox
Namespace: ValveResourceFormat.ResourceTypes.ModelData
Assembly: ValveResourceFormat.dll
Represents a hitbox for collision detection in a model.
csharp
public class HitboxInheritance
Constructors
Hitbox(KVObject)
Initializes a new instance of the class from data.
csharp
public Hitbox(KVObject data)Parameters
data KVObject
The containing hitbox information.
Properties
BoneName
Gets the name of the bone this hitbox is attached to.
csharp
public string BoneName { get; init; }Property Value
GroupId
Gets the group ID of the hitbox.
csharp
public int GroupId { get; init; }Property Value
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
ShapeRadius
Gets the radius of the hitbox shape.
csharp
public float ShapeRadius { get; init; }Property Value
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
TranslationOnly
Gets a value indicating whether this hitbox only supports translation.
csharp
public bool TranslationOnly { get; init; }
