Class Hitbox
- 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
GroupId
Gets the group ID of the hitbox.
public int GroupId { get; init; }
Property Value
MaxBounds
Gets the maximum bounds of the hitbox.
public Vector3 MaxBounds { get; init; }
Property Value
MinBounds
Gets the minimum bounds of the hitbox.
public Vector3 MinBounds { get; init; }
Property Value
Name
Gets the name of the hitbox.
public string Name { get; init; }
Property Value
ShapeRadius
Gets the radius of the hitbox shape.
public float ShapeRadius { get; init; }
Property Value
ShapeType
Gets the shape type of the hitbox.
public Hitbox.HitboxShape ShapeType { get; init; }
Property Value
SurfaceProperty
Gets the surface property of the hitbox.
public string SurfaceProperty { get; init; }
Property Value
TranslationOnly
Gets a value indicating whether this hitbox only supports translation.
public bool TranslationOnly { get; init; }