/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Mechanics/PlaneDistanceFromHitMechanic.h
UPlaneDistanceFromHitMechanicimplements an interaction where a Height/Distance from a plane is defined by intersecting a ray with a target mesh, and then using that hit point to define the distance. Optionally the hit point can be snapped (eg to a world grid), and also the ray can hit other objects to define the height.
[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)() class UPlaneDistanceFromHitMechanic : public [UInteractionMechanic](API\Runtime\InteractiveToolsFramework\UInteractionMechanic)
bool
bCurrentHitIsWorldHit
True if the current hit/height was determined via WorldHitQueryFunc result
bool
bFallbackToLineAxisPoint
If true, then if we don't find any intersection point, just use nearest point on plane normal to ray
float
CurrentHeight
Height at last hit point
UE::Geometry::F...
CurrentHitPosFrameWorld
World frame at last hit point
FHitResult
LastActiveWorldHit
Last active hit point
FFrame3d
PreviewHeightFrame
UE::Geometry::F...
PreviewHeightTarget
UE::Geometry::F...
PreviewHeightTargetAABB
TUniqueFunction...
WorldHitQueryFunc
If this function is set, we will check it for a ray intersection if the target mesh is not hit
TUniqueFunction...
WorldPointSnapFunc
If this function is set, the hit point will be passed in to this function for snapping.