Page 1 of 1
Detecting a hit between a 2d sprite a 3d entity
Posted: Sat Feb 22, 2020 1:37 pm
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 .
Re: Detecting a hit between a 2d sprite a 3d entity
Posted: Sat Feb 22, 2020 1:44 pm
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.