PDA

View Full Version : Rotate to the direction of Right Analog stick



sisko
01-20-2011, 04:02 PM
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
01-20-2011, 04:06 PM
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.

robotiod
01-20-2011, 04:13 PM
Put a joystick rotator on with the right stick inputs.

Weretigr
01-20-2011, 04:15 PM
...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.

Fishrock123
01-20-2011, 04:16 PM
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.

sisko
01-20-2011, 04:28 PM
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/OFF

Fishrock123
01-20-2011, 05:24 PM
*see above*

Take the input your putting into the on/off and put it where the little arrow spike is on the JSR. ;)

sisko
01-20-2011, 05:40 PM
wait.....there is an input port where the pointing arrow of the icon is?

Aya042
01-20-2011, 07:17 PM
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.

rtm223
01-20-2011, 07:21 PM
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.