Jump to content
  • Advertisement
Sign in to follow this  
Chris_N

Can I do this?

This topic is 4827 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

I'm about to start working on AI for my hockey game, and I have a small question: Can I solve only on the xz plane for player position( In my world Y is up ), and by this design all the AI in a simple 2D fashion.? / Christoffer Nyberg

Share this post


Link to post
Share on other sites
Advertisement
I don't see why you couldn't do this. Why don't you only compare X and Z values and just omit the Y value in your calculations?

Share this post


Link to post
Share on other sites
The only thing I can see that you might want to consider the Y value for, is for things like tripping and hip checking in the game, where it depends on the positions (height wise) of the players. Although it would probably work just as good if you used states for this.

Share this post


Link to post
Share on other sites
There are some 3D aspects to the game (mostly because the puck frequently leaves the ice), though you might choose to ignore them.

It affects passing, blocking, and shooting. Keep in mind the goal is in the 3rd dimension. Sometimes the puck will go over the net or over the boards.

Share this post


Link to post
Share on other sites
I will use another model for the puck, my though is to use rigid body for the puck.. So The puck will solve for all the dimensions..

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!