By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,639 Members | 1,125 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,639 IT Pros & Developers. It's quick & easy.

how to perform collision detection in a 3d pyopengl & pygame environment.

P: 3
Obviously collision detection in 3d is/can-be complicated, but I just need some ideas on how to take the 2d perspective of a 3d scene, and use that to allow the user to interact with objects.

Expand|Select|Wrap|Line Numbers
  1. for scene:
  2.     two_dim = get 2d version (all objects now have only 2d coords)
  4.     return two_dim 
  6. #then I could use two_dim to find the position of the   #mouse, and if there is a "collision", the user can drag #the object around. I am unsure how to get the #translated version of a 3d scene as a two dimensional #one, using the perspective of the camera. 
May 3 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.