struct

RaycastHit

Module
Physics
Header
#include "Physics/PhysicsWorld.h"
Namespace
Mowo

Properties

TypeNameDescription
FPhysicsBodyIdbodyID
FPhysicsSubShapeIdsubShapeIDIdentifies the exact triangle / heightfield square / compound leaf that was struck. Keep it if you want to re-resolve the surface later.
Vec3pointThe 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).
Vec3normalPoints OUT of the struck surface, toward the query.
Vec3shapeCenterShape casts only: where the swept shape's center was at the time of impact (origin + dir * fraction). Raycasts leave it equal to point.
floatfractionDefault 1.0f.
ESurfaceTypesurfaceResolved 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