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

Skeleton-driven hitbox raycast (capsule-based). More...

#include <Raycast.hpp>

Public Attributes

bool hit {false}
float distance {k_hitscanRange}
glm::vec3 point {0.0f}
glm::vec3 normal {0.0f, 1.0f, 0.0f}
BodyRegion region {BodyRegion::UpperTorso}
entt::entity entity {entt::null}

Detailed Description

Skeleton-driven hitbox raycast (capsule-based).

Result of a hitbox-aware hitscan raycast.

Member Data Documentation

◆ distance

float physics::HitboxHit::distance {k_hitscanRange}

◆ entity

entt::entity physics::HitboxHit::entity {entt::null}

◆ hit

◆ normal

glm::vec3 physics::HitboxHit::normal {0.0f, 1.0f, 0.0f}

◆ point

glm::vec3 physics::HitboxHit::point {0.0f}

◆ region


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