Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Help!
#1

how to mimic an objects angle: help?

Archive: 7 posts


Hi,

for a level I am building I need an object to "send" its angle which can be detected by other objects that have to mimic that angle. (and, you guessed it, "send" its own again...). I can't use DCS, cause the the angle of the object is controlled by other logic as well...

So far, I've been working with 4 small square objects in a square configuration, connected by springs (str = 0, stiff = yes). the upperright small square is connected to the object, but of axis, thus making circles when the object rotates. The lowerleft object is connected to a plate with an gyro that is pointing up (str=100) and the plate is connected to the main rotational bolt of the object. this makes the other two small squares decompose the circular motion of the object in its x and y component. I detect the location (closeness) of the "free" squares from the lowerleft square.

this gives me a 0-1 x and y range. I substract 0.5 from that using a battery to give me a -0.5 till 0.5 range and send the result to tags. these tags are detected by other objects and send to the inputs of a joystick rotator.

Sound fine, right? But when I start it all up, the angle is off by about 15 - 30 degrees and I can't seem to get it right. I am starting to think that the joystick rotator input is not a linear scale :-(

so: did anyone come up with an angle detector? Which can give its inputs to a joystick? preferably using only logic and as little mechanics as possible (because I need all the room I can get at my thermo)

Thanks in Advance,

Ruisje

PS I tried to multiply the range by 2 to get in the -1 till 1 range (keeping track of the negative and positive part!), but this did nothing for the encountered problem.
2011-02-13 09:36:00

Author:
Unknown User


I would use something like this (https://lbpcentral.lbp-hub.com/index.php?t=12211-UPDATED-Like-Hamster-Wheels-You-ll-love-my-Wheeley-Good-Switches-vid) system to make it.

Just use invisible holo to follow your rotation and transfer the need of rotating certain way to those objects you want to mimic it.
2011-02-17 05:39:00

Author:
waD_Delma
Posts: 282


I would use something like this (https://lbpcentral.lbp-hub.com/index.php?t=12211-UPDATED-Like-Hamster-Wheels-You-ll-love-my-Wheeley-Good-Switches-vid) system to make it.

I'm not sure that would give you accurate measurements of tilt. It could be tweaked to work if there are no outside forces affecting either object, I suppose, but I doubt it would remain accurate.

The best I could figure is this:
http://ic.lbp.me/img/ft/bdcaf9f75a7a05c1b2cb4811ef79b587947972af.jpg

The back arrow is glued to the wheel and the front arrow is following it with a joystick rotator. I put a row of tags along each side of a square: a different color or label for each side. Then I bolted the circle exactly in the center of the square and stuck a microchip all the way up that the tip top. I tweaked a tag sensor until it just barely couldn't detect the green tags on the left and copied it three times for each color. Then I fed them through combiners and hooked them into a joystick rotator on the other arrow:

http://i6.lbp.me/img/ft/f16c84c949ef1db8ae99aeca1b7c23a3d5f832d5.jpg

The idea is that the closer the microchip gets to any color of tag, the stronger signal it relays to the joystick rotator in that direction. In theory, when it's pointed straight up, it should be relaying a 100% UP signal to the rotator and 0% L/R and so on. It's reasonably accurate but it wanders off by 2-3 degrees, especially at the corners.
2011-02-17 06:25:00

Author:
Sehven
Posts: 2188


http://i8.lbp.me/img/ft/ba8151c46348672869d27497215d4d696415d7b7.jpg
This works perfectly!
2011-02-17 06:53:00

Author:
waD_Delma
Posts: 282


You guys are great! thanks for all the input. I'm working with waD_Delmas option. Sehvens option costs too many thermo for my level (I need a lot of these things).

thanks again!

Ruisje
2011-02-20 01:14:00

Author:
Unknown User


This works perfectly!

Well yeah, but.... uh.... well now I feel stupid Can't believe I didn't think of that.
2011-02-20 03:00:00

Author:
Sehven
Posts: 2188


Hi everyone,

thanks again. you can watch the result in my Boid hunt level: http://lbp.me/v/yfbqyk

the mimic method is used in the boids, they are awarded in the end for finishing (without killing yourself, but that is quite straightforward in this level)

Ruisje
2011-03-02 22:02:00

Author:
Unknown User


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.