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

Runtime capsule (world-space, per-entity, per-frame). More...

#include <Hitbox.hpp>

Public Attributes

glm::vec3 pointA {0.0f}
 One endpoint of the capsule centerline.
glm::vec3 pointB {0.0f}
 Other endpoint of the capsule centerline.
float radius = 0.0f
 Capsule radius (world units).
BodyRegion region = BodyRegion::UpperTorso
 For damage multiplier lookup.

Detailed Description

Runtime capsule (world-space, per-entity, per-frame).

World-space capsule, recomputed each tick from animation pose + entity transform.

Member Data Documentation

◆ pointA

glm::vec3 WorldCapsule::pointA {0.0f}

One endpoint of the capsule centerline.

◆ pointB

glm::vec3 WorldCapsule::pointB {0.0f}

Other endpoint of the capsule centerline.

◆ radius

float WorldCapsule::radius = 0.0f

Capsule radius (world units).

◆ region

BodyRegion WorldCapsule::region = BodyRegion::UpperTorso

For damage multiplier lookup.


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