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

Views: 204

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: 1453
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: 504
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: Long Jump 2
Rating: 5
Filesize: 491.5 kB
Downloads: 4331
Comments: 0
Ratings: 1
Date added: 2022/06/17 13:23:07
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Pyrex_Distance_Calculator
Rating: 5
Filesize: 81.12 kB
Downloads: 266
Comments: 0
Ratings: 1
Date added: 2011/02/04 00:15:08
Made with: Phun
Rating: rated 5
download
Title: Score Meter - My First Script
Rating: 5
Filesize: 20.72 kB
Downloads: 331
Comments: 3
Ratings: 1
Date added: 2011/02/20 15:50:12
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Julia-Fractal Calculator(with seed)
Rating: 5.625
Filesize: 42.92 kB
Downloads: 1398
Comments: 8
Ratings: 2
Date added: 2015/12/09 16:07:52
Made with: Algodoo v2.1.0
Rating: rated 5.6
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: