PDA

View Full Version : Make two objects collides and explodes



Axel Lai
04-01-2016, 04:31 AM
I am making an OpenGL plane shooting game. But i cannot make my bullet hits the enemy planes and explodes. Is there anyone who can teach me how? At least some algorithms will do it too.

Carmine
04-01-2016, 01:29 PM
Take it one step at a time. Can you display a plane moving across the screen?

Axel Lai
04-01-2016, 08:21 PM
Take it one step at a time. Can you display a plane moving across the screen?

Yes, i am able to make the enemy plane moving across the screen. And i have a player controlled plane which shoots bullet automatically. But those bullets are not able to hit the enemy plane.

codeman_nz
04-05-2016, 05:28 PM
This is not something that opengl can do. It is only a graphics library and what you want to do involves physics. Try PhysX, that is a good physics SDK.