group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
physics::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

bool physics::HitscanHit::hit {false}

◆ normal

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

◆ point

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

◆ surface

SurfaceType physics::HitscanHit::surface {SurfaceType::Concrete}

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