Browse Search Popular Register Upload Rules User list Login:
Search:
DISTANCE CALCULATION (for lololoer)

Image:
screenshot of the scene

Author: Xray

Group: Default

Filesize: 11.16 kB

Date added: 2013-05-14

Rating: 5

Downloads: 515

Views: 537

Comments: 6

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

lololoer was having trouble calculating the distance between two geometries, so I created this scene for him.

The Thyme calculation is: ((Geom1pos(0) - Geom2pos(0))^2 + (Geom1pos(1) - Geom2pos(1))^2)^0.5

In plain language, you subtract the X position values of the two geometries and square the result. You add that result to the subtracted and squared Y position values of the geometries, and then you take the square root (^0.5) of the summation. The answer is the distance (always a positive value) between the objects.
Please log in to rate this scene
edit
Similar scenes
Title: WW1-Howizer EZ-Aim
Rating: 5
Filesize: 194.76 kB
Downloads: 749
Comments: 0
Ratings: 1
Date added: 2025/02/27 03:53:01
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: And The Winner Is....
Rating: 5
Filesize: 493.31 kB
Downloads: 807
Comments: 6
Ratings: 1
Date added: 2015/01/08 18:35:26
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Distance measurement unit
Rating: 6.1111
Filesize: 18.04 kB
Downloads: 885
Comments: 0
Ratings: 3
Date added: 2010/02/10 03:50:11
Made with: Algodoo before v1.8.5
Rating: rated 6.1
download
Title: animation N. 1
Rating: 5.625
Filesize: 273.51 kB
Downloads: 1469
Comments: 3
Ratings: 2
Date added: 2014/01/08 21:02:35
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: Improved Monowheel
Rating: 5
Filesize: 0.83 MB
Downloads: 1819
Comments: 2
Ratings: 1
Date added: 2015/09/20 02:19:00
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Spring with self adjusting length
Rating: 5.625
Filesize: 300 kB
Downloads: 859
Comments: 0
Ratings: 2
Date added: 2009/07/29 18:39:18
Made with: Phun
Rating: rated 5.6
download
This scene is a response to:
Title Author Rating Downloads Comments Date added
Distance calculator (help) lololoer 5 (1 vote) 534 2 2013/05/13 14:54:04
show grid
tutorial thread pls :3
No tutorial for this. Just a scene. Sorry....
math.vec.dist(scene.my.greenball,scene.my.redball)­

also works
thankx xray you helped me a lot _o_ , about s_noonan's method i will try it later thnx too. I a asked my teacher that how to calculate the distance between two objects in this type of plane, x,y coordinate axis, and he give me this formula : distance = square root of (x2-x1)^2+(y2-y1)^2
s_noonan - Thanks for the tip! I'll try using that on future scenes.

lololoer - That formula that your teacher gave you is the same formula that I used in my example scene for you. Your teacher just laid it out a little differently, but it works the same way.
yes he told me that the square root of a number is the same that elevated to 0.5