FConvex::Raycast

Calls `[GJKRaycast()](API\Runtime\Chaos\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.

Windows
MacOS
Linux

Override Hierarchy

FImplicitObject::Raycast()

FConvex::Raycast()

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Convex.h

Include

#include "Chaos/Convex.h"

Syntax

virtual bool Raycast
(
    const FVec3 & StartPoint,
    const FVec3 & Dir,
    const FReal Length,
    const FReal Thickness,
    FReal & OutTime,
    FVec3 & OutPosition,
    FVec3 & OutNormal,
    int32 & OutFaceIndex
) const

Remarks

Calls [GJKRaycast()](API\Runtime\Chaos\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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss