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

Axis-aligned bounding box defined by half-extents from the entity's Position. More...

#include <CollisionShape.hpp>

Public Attributes

glm::vec3 halfExtents {16.0f, 36.0f, 16.0f}
 AABB half-dimensions (units).
 

Detailed Description

Axis-aligned bounding box defined by half-extents from the entity's Position.

The full bounding box spans [pos - halfExtents, pos + halfExtents].

Default is a standing player in Quake-ish units:

  • Width = 32 (halfExtents.x/z = 16)
  • Height = 72 (halfExtents.y = 36)

Member Data Documentation

◆ halfExtents

glm::vec3 CollisionShape::halfExtents {16.0f, 36.0f, 16.0f}

AABB half-dimensions (units).


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