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

Result of a sphere-cast query (includes world-space hit point). More...

#include <SweptCollision.hpp>

Public Attributes

bool hit {false}
float t {1.0f}
 Fraction along path [0..1].
glm::vec3 normal {0.0f, 1.0f, 0.0f}
 Surface normal at contact.
glm::vec3 point {0.0f}
 World-space contact point on the surface.
SurfaceType surfaceType {SurfaceType::Concrete}
 Material at the hit surface (Phase 3).

Detailed Description

Result of a sphere-cast query (includes world-space hit point).

Member Data Documentation

◆ hit

bool physics::SphereHitResult::hit {false}

◆ normal

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

Surface normal at contact.

◆ point

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

World-space contact point on the surface.

◆ surfaceType

SurfaceType physics::SphereHitResult::surfaceType {SurfaceType::Concrete}

Material at the hit surface (Phase 3).

◆ t

float physics::SphereHitResult::t {1.0f}

Fraction along path [0..1].


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