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: 540

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: Distance calculator for lololoer
Rating: 5.625
Filesize: 30.23 kB
Downloads: 496
Comments: 2
Ratings: 2
Date added: 2013/05/14 01:05:15
Made with: Algodoo before v1.8.5
Rating: rated 5.6
download
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: Distance measurement unit
Rating: 6.1111
Filesize: 18.04 kB
Downloads: 886
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: 1470
Comments: 3
Ratings: 2
Date added: 2014/01/08 21:02:35
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: Perspective Orbit
Rating: 5
Filesize: 4.62 kB
Downloads: 569
Comments: 2
Ratings: 1
Date added: 2013/05/28 03:41:37
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Event execution order
Rating: 5
Filesize: 58.71 kB
Downloads: 1367
Comments: 2
Ratings: 1
Date added: 2014/12/03 10:24:39
Made with: Algodoo v2.1.0
Rating: rated 5
download
This scene is a response to:
Title Author Rating Downloads Comments Date added
Distance calculator (help) lololoer 5 (1 vote) 535 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