Choose your operating system:
Windows
macOS
Linux
| UObjectBase
|
Module |
|
Header |
/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Mechanics/PlaneDistanceFromHitMechanic.h |
Include |
#include "Mechanics/PlaneDistanceFromHitMechanic.h" |
UCLASS()
class UPlaneDistanceFromHitMechanic : public UInteractionMechanic
UPlaneDistanceFromHitMechanic implements 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.
Name | Description | ||
---|---|---|---|
|
bCurrentHitIsWorldHit |
True if the current hit/height was determined via WorldHitQueryFunc result |
|
|
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 |
|
CurrentHitPosFrameWorld |
World frame at last hit point |
|
|
LastActiveWorldHit |
Last active hit point |
|
|
PreviewHeightFrame |
||
|
PreviewHeightTarget |
||
|
PreviewHeightTargetAABB |
||
|
WorldHitQueryFunc |
If this function is set, we will check it for a ray intersection if the target mesh is not hit |
|
|
WorldPointSnapFunc |
If this function is set, the hit point will be passed in to this function for snapping. |
Name | Description | ||
---|---|---|---|
|
const FFrame... |
GetPlane() |
|
|
Initialize ( |
Set the hit target mesh and the plane frame. |
|
|
UpdateCurrentDistance ( |
Update the current distance/height based on the input world ray |
Name | Description | ||
---|---|---|---|
|
Render ( |
Allow the Mechanic to do any custom drawing (ie via PDI/RHI) |
|
|
Setup ( |
Called to initialize the InteractionMechanic |
Name |
Description |
---|---|
FFrame3d |