group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
HitboxDef Struct Reference

Hitbox definition (static, per-rig). More...

#include <Hitbox.hpp>

Public Attributes

std::string boneName
 Skeleton joint name (e.g. "mixamorig:Head").
int boneIndex = -1
 Resolved runtime joint index (-1 = unresolved).
BodyRegion region = BodyRegion::UpperTorso
 Which body part this covers.
glm::vec3 localOffset {0.0f}
 Offset from bone origin in bone-local space.
float radius = 4.0f
 Capsule radius (rig model-space units).
float halfHeight = 4.0f
 Capsule half-height of centerline.
glm::vec3 localAxis {0.0f, 1.0f, 0.0f}
 Capsule axis direction in bone-local space.

Detailed Description

Hitbox definition (static, per-rig).

One bone-attached collision capsule in the rig's bone-local space.

The capsule centerline runs from localOffset - localAxis*halfHeight to localOffset + localAxis*halfHeight. Total swept length = 2*halfHeight + 2*radius (capsule = Minkowski sum of segment + sphere).

Member Data Documentation

◆ boneIndex

int HitboxDef::boneIndex = -1

Resolved runtime joint index (-1 = unresolved).

◆ boneName

std::string HitboxDef::boneName

Skeleton joint name (e.g. "mixamorig:Head").

◆ halfHeight

float HitboxDef::halfHeight = 4.0f

Capsule half-height of centerline.

◆ localAxis

glm::vec3 HitboxDef::localAxis {0.0f, 1.0f, 0.0f}

Capsule axis direction in bone-local space.

◆ localOffset

glm::vec3 HitboxDef::localOffset {0.0f}

Offset from bone origin in bone-local space.

◆ radius

float HitboxDef::radius = 4.0f

Capsule radius (rig model-space units).

◆ region

BodyRegion HitboxDef::region = BodyRegion::UpperTorso

Which body part this covers.


The documentation for this struct was generated from the following file: