Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/PhysicsEngine > API/Runtime/Engine/PhysicsEngine/FBodyInstance
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BodyInstance.h |
| Include | #include "PhysicsEngine/BodyInstance.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/BodyInstance.cpp |
bool LineTrace
&40;
struct FHitResult & OutHit,
const FVector & Start,
const FVector & End,
bool bTraceComplex,
bool bReturnPhysicalMaterial
&41; const
Remarks
Trace a ray against just this bodyinstance true if a hit is found
Parameters
| Name | Description |
|---|---|
| OutHit | Information about hit against this component, if true is returned |
| Start | Start location of the ray |
| End | End location of the ray |
| bTraceComplex | Should we trace against complex or simple collision of this body |
| bReturnPhysicalMaterial | Fill in the PhysMaterial field of OutHit |