Browse Search Popular Register Upload Rules User list Login:
Search:
Laser counter no collision

Image:
screenshot of the scene

Author: matto

Group: Default

Filesize: 494.87 kB

Date added: 2020-05-09

Rating: 6.1

Downloads: 3334

Views: 589

Comments: 4

Ratings: 3

Times favored: 0

Made with: Algodoo v2.1.3

Tags:

Scene tag

Want to see the construction of this scene?
Watch the video!!
Thank you!



Do you want to see more?
Many other videos?
Check out this playlist !!!
THANK YOU!!

Last edited at 2020/05/10 01:00:11 by matto
Please log in to rate this scene
edit
Similar scenes
Title: Ravenplucker's Laser
Rating: 5
Filesize: 44.97 kB
Downloads: 177
Comments: 1
Ratings: 1
Date added: 2016/07/30 04:03:00
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Heating laser
Rating: 4.5
Filesize: 33.58 kB
Downloads: 1127
Comments: 4
Ratings: 2
Date added: 2011/11/21 00:02:45
Made with: Algodoo v2.0.0 Edu
Rating: rated 4.5
download
Title: collision counter
Rating: 5
Filesize: 4.82 kB
Downloads: 1325
Comments: 2
Ratings: 1
Date added: 2022/06/05 01:09:41
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Laser Collision Engine Unit [1 Cylinder]
Rating: 6.8334
Filesize: 0.67 MB
Downloads: 3534
Comments: 11
Ratings: 6
Date added: 2011/03/29 06:23:25
Made with: Algodoo before v1.8.5
Rating: rated 6.8
download
Title: 7 segment display using rods and lasers
Rating: 7.6666
Filesize: 277.5 kB
Downloads: 16276
Comments: 8
Ratings: 9
Date added: 2012/05/25 10:16:07
Made with: Algodoo v2.0.2 Edu
Rating: rated 7.7
download
Title: Collision Laser
Rating: 7.3077
Filesize: 18.8 kB
Downloads: 932
Comments: 2
Ratings: 7
Date added: 2009/09/04 02:32:55
Made with: Algodoo before v1.8.5
Rating: rated 7.3
download
Nice work. I tried counting with one laser by remembering the last entityID hit and only increment the hit count if there is a new entity. That failed when two balls rolling by were touching each other. I then tried only counting if the other entityID did not match either of the last two entities hit. This didn't work about 1% of the time and would never work if there were only two balls. I then tried putting in a delay between hit checks and that didn't work. So I like your approach a can't think of any better way. The only suggestion I would make is to put the laser counter and the collision counter on the same slide and put the counter displays side by side.
I'm glad you like it.
Thanks!!
I hope I was helpful!!
Nice advice, I changed the scene, so it's better!
Suggestions:
1. Put all the balls to the left of both counters at the start.
2. Set maxRays = 1 for both lasers (or else you may get ~1% counting errors).

The following code worked for me with just one laser:
_eID := 0;
onLaserHit := (e)=>{
eID := e.geom.entityID;
eID != _eID ? {
my.scene.hits2 = my.scene.hits2 + 1;
_eID = eID
} : {}
};
maxRays := 1;
Nice scene! :tup: