Blockland Forums

* Simple Machines Forum
 

  • Home
  • Help
  • Login
  • Register

  • Blockland Forums »
  • Blockland Forums »
  • Modification Help »
  • How do I get the distance between two coordinates?
« previous next »
  • Print
Pages: [1]

Author Topic: How do I get the distance between two coordinates?  (Read 942 times)

Aide33

December 04, 2012, 05:21:11 PM
/title

Ad Bot

Advertisement

Treynolds416

December 04, 2012, 05:25:45 PM
Use vectorLen(vectorSub(%pos1,%pos2));

elm

December 04, 2012, 05:26:10 PM
VectorDist(vectorA,vectorB);

Treynolds416

December 04, 2012, 05:32:49 PM
Quote from: elm on December 04, 2012, 05:26:10 PM
VectorDist(vectorA,vectorB);
Oh I forgot this is a thing. You should use this, 3D positions are vectors

Aide33

December 07, 2012, 03:27:02 PM
Quote from: Treynolds416 on December 04, 2012, 05:25:45 PM
Use vectorLen(vectorSub(%pos1,%pos2));
is there any other vector????(); commands and what do they do?

Treynolds416

December 07, 2012, 03:51:52 PM
Quote from: Aide33 on December 07, 2012, 03:27:02 PM
is there any other vector????(); commands and what do they do?
http://docs.garagegames.com/tge/official/content/documentation/Reference/Console%20Functions/TorqueScript_Console_Functions_21.html

Aide33

December 07, 2012, 04:40:42 PM
Quote from: Treynolds416 on December 07, 2012, 03:51:52 PM
http://docs.garagegames.com/tge/official/content/documentation/Reference/Console%20Functions/TorqueScript_Console_Functions_21.html
thanks

  • Print
Pages: [1]
« previous next »
  • Blockland Forums »
  • Blockland Forums »
  • Modification Help »
  • How do I get the distance between two coordinates?
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • XHTML
  • WAP2

Page created in 0.031 seconds with 13 queries.