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

Rotate to the direction of Right Analog stick

Archive: 10 posts


How can i get an object to rotate in the direction that the right analog stick is pointing?

example.....asteroid type games, like the popular one that is on lbp2 right now...or the one mini game level in the story mode where u kill purple triangles....
2011-01-20 17:02:00

Author:
sisko
Posts: 40


A rotator set to "point to tag". Tag an invisible piece of holo. Put an advanced mover on the holo.

So you are actually moving the holo, not the object.
2011-01-20 17:06:00

Author:
Biv
Posts: 734


Put a joystick rotator on with the right stick inputs.2011-01-20 17:13:00

Author:
robotiod
Posts: 2662


...Or use the proper, easier, better and more efficient way of connecting the analogue stick to a "joystick rotator". That points an object to whatever direction you point the analogue stick. Connect the up/down output of the analogue stick to the top of the joystick rotator, and the left/right output the the left of the joystick rotator.2011-01-20 17:15:00

Author:
Weretigr
Posts: 2105


How can i get an object to rotate in the direction that the right analog stick is pointing?

example.....asteroid type games, like the popular one that is on lbp2 right now...or the one mini game level in the story mode where u kill purple triangles....

@Biv, no offence, but that is a very ..er.. bad?(A better word fails me right now!) way of doing this.

Simply hook the vertical controllinator output to the top of a joystick rotator, and the horizontal output to the side of the JSRotator.

Should work just fine. If not, I suggest doing the advanced rotators tutorial ingame.
2011-01-20 17:16:00

Author:
Fishrock123
Posts: 1578


iv done that....joystick thing...it just rotates all crazy...up makes it go side ways...sometimes...down makes it go up or left or right...randomly...im at work right now but im pretty sure the imputs of the joystick is just on/off and left/right........so why would on be putting anything into ON/OFF2011-01-20 17:28:00

Author:
sisko
Posts: 40


*see above*

Take the input your putting into the on/off and put it where the little arrow spike is on the JSR.
2011-01-20 18:24:00

Author:
Fishrock123
Posts: 1578


wait.....there is an input port where the pointing arrow of the icon is?2011-01-20 18:40:00

Author:
sisko
Posts: 40


How can i get an object to rotate in the direction that the right analog stick is pointing?

For the sort of game you're talking about, it's probably easiest just attach a Rocket Rotator to the moving object, and it'll automatically rotate to point in the direction the object is moving.



Put a joystick rotator on with the right stick inputs.

Joystick Rotator is slightly different in that the rotation won't decelerate of its own accord, so your ship may not appear to be pointing in the direction it's moving. The Rocket Rotator always ensures these match.
2011-01-20 20:17:00

Author:
Aya042
Posts: 2870


wait.....there is an input port where the pointing arrow of the icon is?

There are three inputs to the joystick rotator:

On the left hand side is where to connect the left/right output of the analogue stick
On the top is where to connect the up/down output of the analogue stick
On the bottom is an enable / disable control.

I'm gonna guess you've wired the up / down into the enable / disable - a mistake pretty much everyone has done (probably several times in my case ).

You May also want to add a gravity tweak to the object and set the dampening on it to something >0 - this will help to stop it from spinning wildly.
2011-01-20 20:21:00

Author:
rtm223
Posts: 6497


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.