AActor::GetSquaredHorizontalDistanceTo

Returns the squared distance from this Actor to OtherActor, ignoring Z.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h

Include

#include "GameFramework/Actor.h"

Source

/Engine/Source/Runtime/Engine/Private/Actor.cpp

Syntax

float GetSquaredHorizontalDistanceTo
(
    const AActor * OtherActor
) const

Remarks

Returns the squared distance from this Actor to OtherActor, ignoring Z.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss