Detecting a hit between a 2d sprite a 3d entity

Everything related to 3D programming
pfaber11
Enthusiast
Enthusiast
Posts: 149
Joined: Sat Apr 13, 2019 12:17 pm

Detecting a hit between a 2d sprite a 3d entity

Post by pfaber11 »

How do I detect a hit between a 2d sprite and a 3d entity? Not working on anything at the moment but just wanted to know . Thanks for reading .
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Re: Detecting a hit between a 2d sprite a 3d entity

Post by Psychophanta »

Hi.

There are 2 ways of working:
In a 3D screen
or
In a 2D classic graphics screen.

If you choose the first one, then the "2d sprite" you mention, is also a 3D object, because he is a flat entity who lives in a 3D (virtual, logical) world. So you must treat it like that.
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Post Reply