Browse Search Popular Register Upload Rules User list Login:
Search:
Distance Calculator in Meter : Script

Image:
screenshot of the scene

Author: Quark Down

Group: Default

Filesize: 12.99 kB

Date added: 2021-12-06

Rating: 5

Downloads: 657

Views: 222

Comments: 3

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

I scripted a formula to measure the distance between two circles.
For maybe one of my future project.
Last edited at 2021/12/07 00:10:45 by Quark Down
Please log in to rate this scene
edit
Similar scenes
Title: Distance meter 1.0
Rating: 5
Filesize: 6.78 kB
Downloads: 420
Comments: 3
Ratings: 4
Date added: 2011/01/07 10:39:17
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Distance calculator (help)
Rating: 5
Filesize: 24.45 kB
Downloads: 554
Comments: 2
Ratings: 1
Date added: 2013/05/13 14:54:04
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Distance calculator for lololoer
Rating: 5.625
Filesize: 30.23 kB
Downloads: 512
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: Pyrex_Distance_Calculator
Rating: 5
Filesize: 81.12 kB
Downloads: 275
Comments: 0
Ratings: 1
Date added: 2011/02/04 00:15:08
Made with: Phun
Rating: rated 5
download
Title: Julia-Fractal Calculator(with seed)
Rating: 5.625
Filesize: 42.92 kB
Downloads: 1421
Comments: 8
Ratings: 2
Date added: 2015/12/09 16:07:52
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: Calculator [ASSET]
Rating: 6.1111
Filesize: 109.01 kB
Downloads: 1984
Comments: 3
Ratings: 3
Date added: 2019/07/12 01:26:17
Made with: Algodoo v2.1.0
Rating: rated 6.1
download
Quark Down, there is already a function for this, which is much easier to copy. It looks like this:
math.vec.dist(pos1, pos2)
You just put in either a variable or an array in place of pos1 and pos2, and the expression will return the distance between those positions. There is also a variation called length, which calculates the length of a vector. It looks like this:
math.vec.len(vec1)
This is useful for calculating the speed of an object given its velocity, or the distance from an object to the origin.
_DIST = math.vec.dist(scene.my.pos1,scene.my.pos2)
Alright, well I didn't know that ... ::bonk: