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

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: Laser Distance Calculator
Rating: 3
Filesize: 23.72 kB
Downloads: 1466
Comments: 8
Ratings: 8
Date added: 2011/02/04 19:04:49
Made with: Algodoo before v1.8.5
Rating: rated 3
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: My first gondola V6
Rating: 5.625
Filesize: 110.35 kB
Downloads: 547
Comments: 1
Ratings: 2
Date added: 2020/03/10 18:13:00
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: Score Meter - My First Script
Rating: 5
Filesize: 20.72 kB
Downloads: 344
Comments: 3
Ratings: 1
Date added: 2011/02/20 15:50:12
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Distance measurement unit
Rating: 6.1111
Filesize: 18.04 kB
Downloads: 902
Comments: 0
Ratings: 3
Date added: 2010/02/10 03:50:11
Made with: Algodoo before v1.8.5
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: