|
group2 0.1.0
CSE 125 Group 2
|
Result of a downward ground probe — what's directly under a character's feet, classified for walkability. More...
#include <SweptCollision.hpp>
Public Attributes | |
| bool | hit {false} |
| True if any surface was found within the probe range. | |
| bool | walkable {false} |
| True if the surface normal makes it standable per k_floorAngleCos. | |
| float | distance {1e30f} |
| Foot-to-surface signed distance along the probe axis. | |
| glm::vec3 | point {0.0f} |
| World-space contact point on the surface. | |
| glm::vec3 | normal {0.0f, 1.0f, 0.0f} |
| Outward-pointing surface normal (toward free space). | |
| SurfaceType | surfaceType {SurfaceType::Concrete} |
| Material at the hit surface. | |
Result of a downward ground probe — what's directly under a character's feet, classified for walkability.
Returned by probeGround(). distance is signed:
| float physics::GroundProbeResult::distance {1e30f} |
Foot-to-surface signed distance along the probe axis.
| bool physics::GroundProbeResult::hit {false} |
True if any surface was found within the probe range.
| glm::vec3 physics::GroundProbeResult::normal {0.0f, 1.0f, 0.0f} |
Outward-pointing surface normal (toward free space).
| glm::vec3 physics::GroundProbeResult::point {0.0f} |
World-space contact point on the surface.
| SurfaceType physics::GroundProbeResult::surfaceType {SurfaceType::Concrete} |
Material at the hit surface.
| bool physics::GroundProbeResult::walkable {false} |
True if the surface normal makes it standable per k_floorAngleCos.