mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 09:35:25 +00:00
Missing include
This commit is contained in:
parent
83f0125cf8
commit
c1fef4d10a
@ -2,6 +2,7 @@
|
||||
|
||||
#include "Chaos/CastingUtilities.h"
|
||||
#include "Chaos/GeometryQueries.h"
|
||||
#include "PhysicsEngine/ConvexElem.h"
|
||||
|
||||
bool StevesMathHelpers::OverlapConvex(const FKConvexElem& Convex,
|
||||
const FTransform& ConvexTransform,
|
||||
@ -24,17 +25,17 @@ bool StevesMathHelpers::OverlapConvex(const FKConvexElem& Convex,
|
||||
|
||||
Chaos::FMTDInfo MTDInfo;
|
||||
if (Chaos::Utilities::CastHelper(ShapeGeom,
|
||||
ShapeGeomTransform,
|
||||
[&](const auto& Downcast, const auto& FullGeomTransform)
|
||||
{
|
||||
return Chaos::OverlapQuery(*ChaosConvex.Get(),
|
||||
ConvexTransform,
|
||||
Downcast,
|
||||
FullGeomTransform,
|
||||
/*Thickness=*/
|
||||
0,
|
||||
&MTDInfo);
|
||||
}))
|
||||
ShapeGeomTransform,
|
||||
[&](const auto& Downcast, const auto& FullGeomTransform)
|
||||
{
|
||||
return Chaos::OverlapQuery(*ChaosConvex.Get(),
|
||||
ConvexTransform,
|
||||
Downcast,
|
||||
FullGeomTransform,
|
||||
/*Thickness=*/
|
||||
0,
|
||||
&MTDInfo);
|
||||
}))
|
||||
{
|
||||
bHasOverlap = true;
|
||||
OutResult.Distance = MTDInfo.Penetration;
|
||||
|
Loading…
x
Reference in New Issue
Block a user