Jump to content
  • Advertisement
Sign in to follow this  

Convert 3D to 2D positions

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

Hello there !

I'm working on a 3d RTS and I have the basic unit selection code working, the problem is when I want to select multiple units using a selection box.

The method I thought of was convert the 3d coordinates of the units into 2D coordinates and the select them using a 2D selection box.

The problem is I can't seem to convert the 3D coordinates into 2D coordinates.

I'm sure this isn't very hard to do, but somehow all the methods I tried so far failed.

Any help on this would be greatly appreciated !

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!