Jump to content
  • Advertisement
Sign in to follow this  
Evening

ZOE character control using analog joystick

This topic is 4833 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, Any one played "Zone of The Enders" (Z.O.E.). I'am interested in it's third person control. Therefore, I try to implement the same control in my game project. However, it seem no so easy to do. What I know is that the orientation of the robot will follow the direction of the analog stick. if the player push the stick toward a direction, the robot will move in a circular motion. But I don't know how to implement that. If someone also interested in this control. let's discuss this in here :) Best regards, Evening

Share this post


Link to post
Share on other sites
Advertisement
Hmm.. I've never programmed anything with joysticks.. But, I do believe they work by having an X- and an Y-axis..

So, if only the x-axis is moved, the bot will go forward.. If the Y-axis is also moved, you'd check how much, and rotate the bot according to that.. I think that would work..

Share this post


Link to post
Share on other sites
I played Z.O.E. 2 b4, i think the control is same as 1, so this kind of 3rd person control is not too hard, u have to lockon with some object 1st (some kind of vector direction math), if u wanna move left/right, u need the player's right vector (u have Dir & Up vector, CrossProduct can give u the answer), then if player use joy & press left/right directions, just move character along to the right vector (+/-), just like that.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!