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

Result of a hitscan raycast. 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}
SurfaceType surface {SurfaceType::Concrete}
entt::entity entity {entt::null}

Detailed Description

Result of a hitscan raycast.

Member Data Documentation

◆ distance

float physics::HitscanHit::distance {k_hitscanRange}

◆ entity

entt::entity physics::HitscanHit::entity {entt::null}

◆ hit

◆ normal

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

◆ point

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

◆ surface


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