Location of collision with non transparent pixel (2D)

Started by
-1 comments, last by SkeletorFromEternia 10 years, 8 months ago

Hi,

Im currently working on a turn based 4X sci-fi game where Im using OpenGL with an orthographic projection matrix for rendering my graphic content (2D only).

Right now Im implementing the space combat (which is in real time), and Im asking myself how I can locate the position where an incoming projectile (or starship) hits another starship or object in order to place an animation showing explosion there.

Since the game logic is working with a coarser damage model I only need this for the animation, so working on pixels would be better than using circles or rects which would have to be defined separately.

Whats the best way to do this (using OpenGL)?

This topic is closed to new replies.

Advertisement