Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/UGeometryScriptLibrary_Collision-
Description
Attempt to approximate any convex hulls in the given simple collision representation. Updates the passed-in Simple Collision. Convex hulls that aren't well approximated (to tolerances set in ApproximateOptions) will remain as convex hulls.
| Name | ApproximateConvexHullsWithSimplerCollisionShapes |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/CollisionFunctions.h |
| Include Path | #include "GeometryScript/CollisionFunctions.h" |
| Source | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Private/CollisionFunctions.cpp |
UFUNCTION (BlueprintCallable, Category="GeometryScript|Collision",
Meta=(ScriptMethod, AutoCreateRefTerm="ApproximateOptions"))
static void ApproximateConvexHullsWithSimplerCollisionShapes
(
UPARAM FGeometryScriptSimpleCollision & SimpleCollision,
const FGeometryScriptConvexHullApproximationOptions & ApproximateOptions,
bool & bHasApproximated,
UGeometryScriptDebug * Debug
)
Parameters
| Name | Remarks |
|---|---|
| SimpleCollision | The collision in which to attempt to approximate the convex hulls |
| ConvexSimplifyOptions | Options controlling how convex hulls are approximated |
| bHasApproximated | Indicates whether any convex hulls were replaced with simpler approximations |