Legacy Documentation: Version 5.4
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Vector4.Distance

public static float Distance(Vector4 a, Vector4 b);

Parameters

Description

Returns the distance between a and b.

Vector4.Distance(a,b) is the same as (a-b).magnitude.