struct
RaycastHit
- Module
- Physics
- Header
#include "Physics/PhysicsWorld.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
FPhysicsBodyId | bodyID | |
FPhysicsSubShapeId | subShapeID | Identifies the exact triangle / heightfield square / compound leaf that was struck. Keep it if you want to re-resolve the surface later. |
Vec3 | point | The impact point ON the struck surface — for shape casts this is the contact point, not the swept shape's center (decals, impact FX and the camera boom all want the surface). |
Vec3 | normal | Points OUT of the struck surface, toward the query. |
Vec3 | shapeCenter | Shape casts only: where the swept shape's center was at the time of impact (origin + dir * fraction). Raycasts leave it equal to point. |
float | fraction | Default 1.0f. |
ESurfaceType | surface | Resolved from the sub-shape, so a mesh with per-triangle surfaces or a terrain with painted layers answers per hit rather than per body. Default ESurfaceType::Default. |
Generated from Physics/PhysicsWorld.h via physics.json · Nov 4, 2026Version 1.0.0