Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/CompGeom > API/Runtime/GeometryCore/CompGeom/FConvexDecomposition3
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/ConvexDecomposition3.h |
| Include | #include "CompGeom/ConvexDecomposition3.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/CompGeom/ConvexDecomposition3.cpp |
static bool ConvexPartVsSphereOverlap
(
const FConvexPart & Part,
FVector3d Center,
double Radius,
const FTransform * TransformIntoSphereSpace,
double * OutDistanceSq
)
Remarks
Tests if a convex part overlaps a sphere true if the Part overlaps the sphere, false otherwise
Parameters
| Name | Description |
|---|---|
| Part | Convex part to test for overlap with sphere |
| Center | Center of sphere |
| Radius | Radius of sphere |
| TransformIntoSphereSpace | If non-null, transform from convex hull to sphere coordinate space. Otherwise, hulls and spheres are assumed to be in the same space. |
| OutDistanceSq | If non-null, and there is an overlap, will be filled with the squared distance from the sphere center to the convex hull (0 if the center is inside the hull). If no overlap is found, value is not meaningful. |