traker/pointer question

About advanced scenes, and the Thyme scripting language used in Algodoo.

traker/pointer question

Postby erik1505 » Tue Feb 01, 2011 8:00 pm

So right now im trying to make a ground based pointer/traker thing(bassically a laser on the ground that follows an airborne object) but im having troubles with actually gettin down and scripting it. The problem is wher it actually 1. finds the object then locks on to sed object and then follows it 2. it can only catch something within a certain range 3. after the object it locks on to goes out of the effective range it goes back to searching for another airborne object. But i also want to be able to have multiple objects in the air that it can lock on to then deactivate then lock onto another object. So bassically a guided laser on the ground that has multiple targets it can attach to the deattach to. Can anyone give me some help with this? And this part might be asking to much but is there then away to add a radar of sorts that when it locks on to a target it shows its position on a map?
кошка :D
erik1505
 
Posts: 4
Joined: Wed Nov 10, 2010 7:34 pm
Location: NoWheresVille, NC

Re: traker/pointer question

Postby Kilinich » Wed Feb 02, 2011 12:30 pm

My advice is put sensor (laser with position detection) on each airborne object, so you always know it's location.
Then, pick any direction following tech (motor, spring, material velocity) and apply to your laser beacon.
So now you only need script to get nearest from your list and follow it if it is close enough.
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: traker/pointer question

Postby erik1505 » Wed Feb 02, 2011 7:29 pm

Ohhhh.... ok i think im starting get it now hehe (had to read what you said a couple of times for it to sink in) but now i get it. Thanks for the help!
кошка :D
erik1505
 
Posts: 4
Joined: Wed Nov 10, 2010 7:34 pm
Location: NoWheresVille, NC

Re: traker/pointer question

Postby Someone Else » Wed Feb 02, 2011 7:37 pm

I have had an idea for a gizmo that would not need a laser position sensor to track something, but the script would be so obscenely complex that only a few people could do it, Kilinich being one.

There would be an assemblage of lasers on a box that can rotate. Each would track the position of whatever it touched, so long as the geom is PURE RED or some other known color. By knowing which lasers touch the red geom, the script could tell how to rotate the whole gizmo so the laser in the center is always hitting the red geom.

If there is nothing red in sight, the whole assembly would spin around until it does see something red.

And this, maybe, could be made phunlet-safe. Rotate it with materialVelocity.
Matthias Wandel is epic, in my humble opinion.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.

ARE YA HAPPY NOW?????

Thymechanic/Phundamentalist

Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
User avatar
Someone Else
 
Posts: 1147
Joined: Sun Nov 21, 2010 10:53 pm
Location: The Milky Way Galaxy

Re: traker/pointer question

Postby davidz40 » Wed Feb 02, 2011 8:50 pm

That might be helpful. Locks on targets at certain distance. It has no way to deactivate lock, but that shouldn't be hard to do. (covering all lasers for some time should do the trick)
Rating: rated 7.3
Filesize: 19.98 kB
Comments: 7
Ratings: 7
download
Phundamentalist
User avatar
davidz40
 
Posts: 438
Joined: Sun Sep 06, 2009 10:30 am

Re: traker/pointer question

Postby erik1505 » Thu Feb 03, 2011 5:03 pm

yeah annoyingly some one just uploaded a scene yesterday with the same idea as mine...... :problem:
кошка :D
erik1505
 
Posts: 4
Joined: Wed Nov 10, 2010 7:34 pm
Location: NoWheresVille, NC

Re: traker/pointer question

Postby TC42 » Thu Feb 03, 2011 10:08 pm

erik1505 wrote:yeah annoyingly some one just uploaded a scene yesterday with the same idea as mine...... :problem:


I didn't see this thread; and I though it (my object seeker) would be too basic for your purposes... It was just sort of a random idea of mine (and/or Someone Else's). Sorry for not posting it here...
Image
Spambot wrote:Nowadays, memes usually are studied less in the field of biology, but more with the arena of psychology along with sociology. But, the major area of a meme, getting embraced and imitated all the time is what’s at any core connected with any meme.
User avatar
TC42
 
Posts: 984
Joined: Sun Jan 09, 2011 1:53 pm
Location: $ sudo apt get-install sandwich_

Re: traker/pointer question

Postby erik1505 » Thu Feb 03, 2011 10:22 pm

its ok... good scene though
кошка :D
erik1505
 
Posts: 4
Joined: Wed Nov 10, 2010 7:34 pm
Location: NoWheresVille, NC


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 2 guests