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