Navigation
API > API/Runtime > API/Runtime/Chaos
Description
Sweeps one geometry against the other @A The first geometry @B The second geometry @BToARotation B's starting rotation in A's local space @StartPoint B's starting position in A's local space @RayDir The ray's direction (normalized) @RayLength The ray's length @OutTime The time along the ray when the objects first overlap @OutPosition The first point of impact (in A's local space) when the objects first overlap. Invalid if time of impact is 0 @OutNormal The impact normal (in A's local space) when the objects first overlap. Invalid if time of impact is 0 @bComputeMTD If there is an initial overlap, this will compute the output info from the overlap info. @InitialDir The first direction we use to search the CSO
If A overlaps B at the start of the ray ("initial overlap" condition) then this function returns true, and sets OutTime = 0, but does not set any other output variables unless bComputeMTD is true.
| Name | Chaos::GJKRaycast2ImplSimd |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/GJK.h |
| Include Path | #include "Chaos/GJK.h" |
namespace Chaos
{
template<typename T, EGJKTestSpace TestSpace>
bool Chaos::GJKRaycast2ImplSimd
(
const FGeomGJKHelperSIMD &__restrict A,
const FGeomGJKHelperSIMD &__restrict B,
const T & BToARotation,
const T & StartPoint,
const T & RayDir,
FRealSingle RayLength,
FRealSingle & OutTime,
T & OutPosition,
T & OutNormal,
bool bComputeMTD,
const T & InitialDir
)
}
True if the geometries overlap during the sweep, False otherwise