Move get distance util to shared
This commit is contained in:
@@ -100,3 +100,9 @@ function doesEntityDataExist(entity, dataName) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
function getDistance(vec1, vec2) {
|
||||||
|
return vec1.distance(vec2);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------
|
||||||
Reference in New Issue
Block a user