UPlaneDistanceFromHitMechanic::Initialize

Set the hit target mesh and the plane frame.

Choose your operating system:

Windows

macOS

Linux

References

Module

ModelingComponents

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

Syntax

virtual void Initialize
(
    UE::Geometry::FDynamicMesh3 && HitTargetMesh,
    const FFrame3d & PlaneFrameWorld,
    bool bMeshInWorldCoords
)

Remarks

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