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

Views: 221

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: 1464
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 (help)
Rating: 5
Filesize: 24.45 kB
Downloads: 553
Comments: 2
Ratings: 1
Date added: 2013/05/13 14:54:04
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Long Jump 2
Rating: 5
Filesize: 491.5 kB
Downloads: 4359
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: 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: 546
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: 342
Comments: 3
Ratings: 1
Date added: 2011/02/20 15:50:12
Made with: Algodoo before v1.8.5
Rating: rated 5
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: