VerseIsland
FeedLearnLeaderboardGuidesReferenceExploreSearchDocsVerse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Browse Verse API›Verse Language·Up to Verse API · Verse Language·182 of 542 in Verse Language

Distance Function For Vectors

Returns the Euclidean distance between V1 and V2.

Verse using statement using { /UnrealEngine.com/Temporary/SpatialMath }

Distance<public>(V1:vector3, V2:vector3)<reads><computes>:float

Parameters

Distance takes the following parameters:

Name Type Description
V1 vector3
V2 vector3

Attributes, Specifiers, and Effects

Specifiers

The following specifiers determine how you can interact with Distance in your programs. For the complete list of specifiers, see the Specifiers Page.

Specifier Meaning
public The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data.

Effects

The following effects determine how Distance behaves in your programs. For the complete list of effects, see the Effect Specifers section of the Specifiers Page.

Effect Meaning
reads This effect indicates that the same inputs to the function may not always produce the same output. The behavior depends on factors external to the specified inputs, such as memory or the containing package version.
computes This effect requires that the function has no side effects, and is not guaranteed to complete. There’s an unchecked requirement that the function, when provided with the same arguments, produces the same result. Any function that doesn’t have the native specifier that would otherwise have the converges effect is a good example of using the computes effect.
Guided course

Add this to your free study plan — we’ll suggest related material and stitch it into one compile-checked lesson.

Keep exploring
More in Verse Language · 182 of 542
Prev
distance 1
Next
distance
Browse all files in this folder (A–Z)

Source

Epic Games documentation

View original

Last updated 2026-05-14T08:50:10.938152+00:00

VerseIsland· an archipelago of Verse & UEFN knowledge
🗺️ Island atlasLearnGuidesHistoryAbout & PressSources & LicensingPrivacy PolicyTermsStatus

Not affiliated with Epic Games. Fortnite, UEFN, Unreal Engine, and Verse are trademarks of Epic Games, Inc. Content is attributed to its source — see Sources & Licensing.

🦜

Scout · your island guide

The Isle of Verse