Avançar para o conteúdo principal

Pesquisa

Top Down Shooter - Right Stick Rotation

  • MidnightManiac

    I think I know what you mean. Need to output from local right stick into splitter then hook x-axis to x-axis on a rocket rotator. Set strength to 100 and dampening to 100 for smooth rotation. That worked for me. Don't use gyroscope anywhere as it resets the vehicle to a default start point in the rotation when you let go of sticks.

  • MidnightManiac

    Oh and ramp up the degrees per second to 1000 on Rocket rotator.

  • Pixl1983

    Thanks so much for the advice. I'm not sure if I'm doing something wrong but it doesn't appear to work.

    The output you're ending up with from the controller is only the left/right from the thumbstick. Which will turn the ship left or right instead of reproducing the direction you're pointing the stick.

    From what I understand of game design I'll need some sort of trigonometry calculation to work out the value from the thumbstick as an angle. It appears the control sensor only sees the sticks as the x/y value.

    Is there a gadget that does this calculation?

  • Pixl1983

    For the record, I have solved this, however it feels like a bit of a workaround.

    Taking the cue from Ninjuana's excellent Planetoid Pandemonium, I created keyframes for 4 points of rotation and split the local right stick into 4 wiring up appropriately. Add in a bit of ramp up and springiness and let the keyframes do the default blend. Also, don't forget to keep changes on all the keyframes.

    Again, I feel like this is a bit of a workaround. You don't have a huge amount of control over the behavior of the rotation. Now I just need to work out how to make the ship tilt slightly when moving...

    As with a lot of things in Dreams, I get the feeling I'll be either overthinking or underestimating the tool set a lot!

iniciar sessão para comentar.