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