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

01-27-2013, 08: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.


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.


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.

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.

Set the "Rotator's" Strength to 100% & its Deceleration to 0%
Open the "Anti-Gravity Tweaker" & set the Anti-Gravity to 40% & the Dampening to 50%
Open up the "Material Tweaker" and make sure that the Friction is set to 100% and that Sticky is turned on.

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....

01-27-2013, 08: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.


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.


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.

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.
Turn up its Maximum Detection Range to 30.
Lets add a Custom Tag Label called 'Lap Count'
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:
Turn the Text Size up to 50.
Change Input Action to Signal Strength.
Switch it to Visible in Play Mode:Text Only.
And finally change the Suffix to No Text by deleting the % that is currently there.
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"


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.


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

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

02-09-2013, 07: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?

02-11-2013, 01: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.