Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/Mechanics
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UInteractionMechanic
- USpatialCurveDistanceMechanic
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Mechanics/SpatialCurveDistanceMechanic.h |
| Include | #include "Mechanics/SpatialCurveDistanceMechanic.h" |
Syntax
UCLASS&40;&41;
class USpatialCurveDistanceMechanic : public UInteractionMechanic
Variables
| Type | Name | Description | |
|---|---|---|---|
| FVector3d | CurrentCurvePoint | ||
| double | CurrentDistance | Current distance | |
| FVector3d | CurrentSpacePoint | ||
| TArray< FVector3d > | Curve | ||
| UE::Geometry::FDynamicMesh3 | TargetHitMesh | ||
| UE::Geometry::FDynamicMeshAABBTree3 | TargetHitMeshAABB | ||
| FTransform3d | Transform | ||
| TUniqueFunction< bool(const FVector3d &, FVector3d &)> | WorldPointSnapFunc | If this function is set, the hit point will be passed in to this function for snapping. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | InitializePolyCurve
(
const TArray< FVector3d >& CurvePoints, |
||
| void | InitializePolyLoop
(
const TArray< FVector3d >& CurvePoints, |
||
| void | UpdateCurrentDistance
(
const FRay& WorldRay |
Update the current distance/height based on the input world ray |
Overridden from UInteractionMechanic
| Type | Name | Description | |
|---|---|---|---|
| void | Render
(
IToolsContextRenderAPI* RenderAPI |
Allow the Mechanic to do any custom drawing (ie via PDI/RHI) | |
| void | Setup
(
UInteractiveTool* ParentTool |
Called to initialize the InteractionMechanic |