Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Mechanics/PlaneDistanceFromHitMechanic.h |
Include |
#include "Mechanics/PlaneDistanceFromHitMechanic.h" |
Source |
/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/Mechanics/PlaneDistanceFromHitMechanic.cpp |
virtual void Initialize
(
UE::Geometry::FDynamicMesh3 && HitTargetMesh,
const FFrame3d & PlaneFrameWorld,
bool bMeshInWorldCoords
)
Set the hit target mesh and the plane frame. Distance is measured along Z axis. If bMeshInWorldCoords is true, then HitTargetMesh is in world coords. Otherwise we assume it is in local coords of PlaneFrameWorld