HPC_Voxel_Engine 0.2.0
High-Performance C++ Voxel Engine
Loading...
Searching...
No Matches
Public Attributes | List of all members
RayHit Struct Reference

Encapsulates the result of a raycast query against the voxel world. More...

#include <src/physics/PhysicsSystem.h>

Collaboration diagram for RayHit:
Collaboration graph

Public Attributes

Core::Vec3 m_objHitPoint {}
 
Core::Vec3 m_objNormal {}
 
float m_fDistance {0.0f}
 
int m_iBlocKX {0}
 
int m_iBlocKY {0}
 
int m_iBlocKZ {0}
 
bool m_bHit {false}
 

Detailed Description

Encapsulates the result of a raycast query against the voxel world.

Member Data Documentation

◆ m_bHit

bool RayHit::m_bHit {false}

◆ m_fDistance

float RayHit::m_fDistance {0.0f}

◆ m_iBlocKX

int RayHit::m_iBlocKX {0}

◆ m_iBlocKY

int RayHit::m_iBlocKY {0}

◆ m_iBlocKZ

int RayHit::m_iBlocKZ {0}

◆ m_objHitPoint

Core::Vec3 RayHit::m_objHitPoint {}

◆ m_objNormal

Core::Vec3 RayHit::m_objNormal {}

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