Documentation
›
API Reference
›
Object
›
Math
›
Vec3
DistanceToPoint
Lua
C++
This function returns the distance between two positions in space.
Syntax
float Vec3::
DistanceToPoint
(const Vec3& p)
Parameters
p:
input position.
Returns
Returns the distance between to the input position.