Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/FConvex
Description
Calls [GJKRaycast()](API\Runtime\Chaos\Chaos__GJKRaycast)_, which may return true_ but 0 for OutTime_, which means the bodies are touching, but not by enough to determine OutPosition_ and `OutNormal_ should be. The burden for detecting this case is deferred to the caller.
Virtual Inheritance
- FImplicitObject::Raycast → FConvex::Raycast
| Name | Raycast |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Convex.h |
| Include Path | #include "Chaos/Convex.h" |
| Source | /Engine/Source/Runtime/Experimental/Chaos/Private/Chaos/Convex.cpp |
virtual bool Raycast
(
const FVec3 & StartPoint,
const FVec3 & Dir,
const FReal Length,
const FReal Thickness,
FReal & OutTime,
FVec3 & OutPosition,
FVec3 & OutNormal,
int32 & OutFaceIndex
) const