PDA

View Full Version : [How To] ...Circular Object Travel Around...Part2 + Counter Debug Logic!



Wolfdre
01-27-2013, 09:23 PM
Hey LBPC! Wolfdre here and im going to assault you with another quick demonstration! This is essentially a continuation of my earlier help topic located HERE (http://www.lbpcentral.com/forums/showthread.php?77397-How-To-Make-a-Circular-Object-Travel-Around-a-Surface-Material&goto=newpost) only this time we are changing a few variables by user request and i will also show you guys some quick counter logic to debug rotations youself. Its more like "Reassurance Logic" if that makes any sense but yeah ill explain in the following post.


Is there a way to make your method work without a square platform? Mine is a 20 x 5 rectangle. It works for about 3 revolutions and then it ends up falling off. I even tried it with rounded edges and the same thing happened but it just took a little longer. The thing I'm using is made out of metal material if that helps. I may have to switch it to something lighter though. Also, its bigger so you cant jump over it.

The user provided great detail about their particular situation so it was easy to come up with a solution.
Lets begin to recreate the scenario.


The Create Settings
Open up the Start Menu and match these create settings for the crafting process. Turn on Front View and set the Grid to Medium. Dont worry about the Angle Snap just yet.


http://i1113.photobucket.com/albums/k510/wolfdre/1_zpsba873144.jpg

The Platform/Obstacle
For this demo we will use the 'Basic Metal' material. Bring it out and select the Square Shape and set its property to 'Dynamic' The user requested a 5x20 rectangle so lets go ahead and create that. After that, grab the Circle Shape, set the property to Static and make a 2x2 circle.


http://i1113.photobucket.com/albums/k510/wolfdre/2-1_zpscfc5a9f9.jpghttp://i1113.photobucket.com/albums/k510/wolfdre/3_zpsf7027cd3.jpg

The Logic
Set up the logic components just like in the previous example. So to recap we will need a "Rotator", "Material Tweaker" , "Gravity Tweaker" & a "Not Gate." The settings will be different but for now go ahead and place them like before as the setup remains the same.


http://i1113.photobucket.com/albums/k510/wolfdre/4_zpsd97ef5a6.jpg
Dont forget to loop the "Not Gate" back into itself and into the "Material Tweaker's" Input

The Settings
The logic remains the same but the the individual settings are different for this example. Match the settings in the provided images.


http://i1113.photobucket.com/albums/k510/wolfdre/5_zps86e99a96.jpg
Set the "Rotator's" Strength to 100% & its Deceleration to 0%
http://i1113.photobucket.com/albums/k510/wolfdre/6_zps56353dd4.jpg
Open the "Anti-Gravity Tweaker" & set the Anti-Gravity to 40% & the Dampening to 50%
http://i1113.photobucket.com/albums/k510/wolfdre/7_zps601b5ef7.jpg
Open up the "Material Tweaker" and make sure that the Friction is set to 100% and that Sticky is turned on.

Success!
http://i1113.photobucket.com/albums/k510/wolfdre/8_zpsd1f7c4b0.jpg
But then again why take my word for it?!?!
Ill explain in the following post and show you a quick solution using the "Reassurance Logic" that i mentioned in the opening statement....



Continued in next post....

Wolfdre
01-27-2013, 09:23 PM
...Continued from previous post

Counter Debug Logic

Ok, so the user that outlined this particular scenario mentioned that after a few complete revolutions the obstacle would drop away from the structure. So i was thinking, i cant just make a post every time someone wants to try this with a different material and a different platform. So in an effort to minimize fuss ive come up with some basic counting logic that will count and display every time the object completes a lap of the platform. Im not sure about you guys but lets say the object just ran its course and it completed say i dunno, 50 laps. At that point i would be fairly satisfied that with the current logic settings im not going to lose the rotating object.
Thats what i meant earlier by "Reassurance Logic." By no means does it directly effect the scenario its just there to count. Everyone is different but we all have a point where we will be satisfied and this is meant to help achieve that point of satisfaction.



The Create Settings

Open up the start menu and match these create settings for the crafting process. Turn on front view and set the grid to Small. Set the angle snap to 45 just in case. Makes it easier to set every thing up.

http://i1113.photobucket.com/albums/k510/wolfdre/9_zpse8836496.jpg

The Logic

Ok for this step we are going to need a "Microchip," a "Tag Sensor," "Counter," "Tag" & a "Note." Just for kicks we are also going to incorporate a Custom Tag Label.


http://i1113.photobucket.com/albums/k510/wolfdre/10_zpsede26946.jpg

The Setup

I want to outline a few quick setting changes before we get rolling with this (HAW HAW) Ill work through them individually. Lets start with the "Microchip" & "Tag Sensor." For all of these examples we are going to use the structure we built in the above post.


http://i1113.photobucket.com/albums/k510/wolfdre/11_zpsb1aa6457.jpg
Place the "Microchip" on the bottom of the platform. Place the "Tag Sensor" onto the open PCB and flip it completely upside down. Set its Trigger Angle Range to 15.
http://i1113.photobucket.com/albums/k510/wolfdre/13_zpsc0538be7.jpg
Turn up its Maximum Detection Range to 30.
http://i1113.photobucket.com/albums/k510/wolfdre/12_zpsd3693c39.jpg
Lets add a Custom Tag Label called 'Lap Count'
http://i1113.photobucket.com/albums/k510/wolfdre/14_zpsa7af6339.jpg
Place a "Counter" and set its Target Count up to 100. Other than that leave the rest of its settings as they are.

Now take a "Note" and place it outside of the "Microchip" on the structure. Open its settings and adjust the following:
http://i1113.photobucket.com/albums/k510/wolfdre/15_zps23a503d8.jpg
Turn the Text Size up to 50.
http://i1113.photobucket.com/albums/k510/wolfdre/16_zps54bf3892.jpg
Change Input Action to Signal Strength.
http://i1113.photobucket.com/albums/k510/wolfdre/17_zpsdeced5c2.jpg
Switch it to Visible in Play Mode:Text Only.
http://i1113.photobucket.com/albums/k510/wolfdre/18_zpsf43e0bf3.jpg
And finally change the Suffix to No Text by deleting the % that is currently there.
http://i1113.photobucket.com/albums/k510/wolfdre/19_zps178d7fb9.jpg
Place a "Tag" with the Custom Tag Label we used earlier on the rotating obstacle.

The Result


Connect the "Tag Sensor" to the "Counter" and then the "Counter" to the "Note"


http://i1113.photobucket.com/albums/k510/wolfdre/20_zps1db3a794.jpg

Step back, Select Preview Mode to hide the logic except text and Un-pause the create space. Every time the obstacle passes by the "Tag Sensor" it will count up by 1 on the "Note." At this point you can just put the Vita down and let it run a couple laps. Check back every so often and see how the count is going! If the object fell off at some point then the count would have stopped but at least you would be aware of how many complete rotations were made before the round dropped off the structure. How many rotations are up to the end user but like i said before, we all have a point where enough is enough and are satisfied with the end result.



http://i1113.photobucket.com/albums/k510/wolfdre/21_zps94712f78.jpg
http://i1113.photobucket.com/albums/k510/wolfdre/22_zpsa856bd53.jpg
http://i1113.photobucket.com/albums/k510/wolfdre/23_zpsa412cece.jpg
http://i1113.photobucket.com/albums/k510/wolfdre/24_zps1ccf40dc.jpg

In the last statement in the above post i had mentioned that it works but you don't need to take my word for it. Using this system you can very easily prove it for yourself.



Its important that you all experiment with various settings and arrive at your own conclusions. Its part of the magic of LBP after-all. Also this would be a good time to mention that these small tutorials are only meant to be a helping hand and not strict guide lines. There are many solutions to various create conundrums in LBP and i encourage you to explore the possibilities.

The screenshots I've posted have also been made available in THIS ALBUM (http://www.lbpcentral.com/forums/album.php?albumid=2901) Feel free to browse/take copies or w/e

IcyFlamez_
01-28-2013, 05:05 AM
Thanks a lot dude! This is really helpful! :)

Roosterland
02-09-2013, 08:41 PM
what if you wanted to put it on the inside of an object?I tried this and it gets stuck in the corner.How can I fix this?

Wolfdre
02-11-2013, 02:48 PM
what if you wanted to put it on the inside of an object?I tried this and it gets stuck in the corner.How can I fix this?

Just tweak settings. The cardboard demo in the other thread works just fine internally, so i see little reason why this one shouldn't.