group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
physics::HitResult Struct Reference

Result of a swept AABB collision query. More...

#include <SweptCollision.hpp>

Public Attributes

bool hit {false}
 True if the sweep intersected a plane.
 
float tFirst {1.0f}
 Fraction along the movement path [0..1] where the first hit occurs.
 
glm::vec3 normal {0.0f, 1.0f, 0.0f}
 Surface normal at the contact point.
 

Detailed Description

Result of a swept AABB collision query.

Member Data Documentation

◆ hit

bool physics::HitResult::hit {false}

True if the sweep intersected a plane.

◆ normal

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

Surface normal at the contact point.

◆ tFirst

float physics::HitResult::tFirst {1.0f}

Fraction along the movement path [0..1] where the first hit occurs.


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