UDragAlignmentMechanic::CastRay

Casts a ray into the scene to find an alignment point. Used in the functions bound to gizmos.

Choose your operating system:

Windows

macOS

Linux

References

Module

ModelingComponents

Header

/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Mechanics/DragAlignmentMechanic.h

Include

#include "Mechanics/DragAlignmentMechanic.h"

Source

/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/Mechanics/DragAlignmentMechanic.cpp

Syntax

virtual bool CastRay
(
    const FRay & WorldRay,
    FVector & OutputPoint,
    const TArray< const UPrimitiveComponent * > * ComponentsToIgnore,
    const TArray< const UPrimitiveComponent * > * InvisibleComponentsToInclude,
    bool bUseFilter
)

Remarks

Casts a ray into the scene to find an alignment point. Used in the functions bound to gizmos.

Returns

true if something was hit.

Parameters

Parameter

Description

bUseFilter

If true, and if there is a dynamic mesh to hit, its triangles are filtered to avoid hitting deformed triangles.