class

FLidarTrace

Module
Game
Header
#include "PointCloud/LidarTrace.h"
Namespace
Mowo

Public functions

ReturnsNameDescription
uint32_tTraceCPUTraces the shot against the physics world on the CPU.
uint32_tTraceCPUBatched form.
uint32_tTraceCPUThe same trace with the scan-response table in the loop.

Function details

TraceCPU

C++
static uint32_t TraceCPU(PhysicsWorld& world, const FLidarShot& shot, std::vector<FLidarHit>& outHits)

Traces the shot against the physics world on the CPU. Deterministic and side-effect free: it reads the physics broadphase and writes outHits, so the same shot against the same world state always produces the same hits in the same order. Appends; it does not clear outHits.

TraceCPU

C++
static uint32_t TraceCPU(PhysicsWorld& world, const FLidarShot& shot, const FQueryFilter& filter, FTraceBatch& batch, std::vector<FLidarHit>& outHits)

Batched form. batch is the caller's ray storage — hold one per scanner and a shot allocates nothing after the first — and filter is where the shooter's own capsule goes, now that a character has an inner body a ray starting inside it would otherwise report at zero distance. Determinism is unaffected: results are written per ray index, so the parallel and serial paths produce the same hits in the same order.

TraceCPU

C++
static uint32_t TraceCPU(PhysicsWorld& world, const FLidarShot& shot, const FQueryFilter& filter, FTraceBatch& batch, const FScanResponseTable* responses, uint64_t seed, std::vector<FLidarHit>& outHits)

The same trace with the scan-response table in the loop. A null table is the passthrough the two overloads above forward through, so a caller that installs no table runs the identical code and gets the identical cloud — the responses are an addition to this path, not a fork of it. The table keys on the hit's surface type as its tag and on the hit entity as its instance, so a creature installs a rule on itself without inventing a material. Penetrate re-casts through PhysicsWorld::QueryRay; every other response is resolved in place.

Generated from PointCloud/LidarTrace.h via game.json · Nov 5, 2026Version 1.0.0