Module |
|
Header |
/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorStaticMeshLibrary.h |
Include |
#include "EditorStaticMeshLibrary.h" |
Source |
/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Private/EditorStaticMeshLibrary.cpp |
Add a convex collision to a static mesh. Any existing collisions will be removed from the static mesh. This method replicates what is done when invoking menu entry "Collision > Auto Convex Collision" in the Mesh Editor.
A boolean indicating if the addition was successful or not.
Parameter |
Description |
---|---|
StaticMesh |
Static mesh to add convex collision on. |
HullCount |
Maximum number of convex pieces that will be created. Must be positive. |
MaxHullVerts |
Maximum number of vertices allowed for any generated convex hull. |
HullPrecision |
Number of voxels to use when generating collision. Must be positive. |
bApplyChanges |
Indicates if changes must be apply or not. |