Skip to main content
Known Participant
April 28, 2011
Answered

Vector3D.distance

  • April 28, 2011
  • 1 reply
  • 1228 views

In AS3 I am trying to get the dstance between 2 3D objects by using distance method.

    if(Vector3D.distance(model.position,model2.position) < 100)

        {

            // do something

        }

..

>>You can use it directly as a method of the Vector3D class to get the Euclidean distance between two three-dimensional points.

Which point does this method pick? Is it the closest point to the other object ?

I am just thinking of how much time this would take in testing objects with large poly count.

This topic has been closed for replies.
Correct answer Andrei1-bKoviI

It doesn't pick up point - it calculates distance between two points.

1 reply

Andrei1-bKoviICorrect answer
Inspiring
April 28, 2011

It doesn't pick up point - it calculates distance between two points.