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

Everything related to 3D programming
pfaber11
Enthusiast
Enthusiast
Posts: 145
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
Addict
Addict
Posts: 4996
Joined: Wed Jun 11, 2003 9:33 pm
Location: Lípetsk, Russian Federation
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:Wend
Will never leave this forum until the absolute bugfree PB :mrgreen:
Post Reply