- Home /
Raycast collision for 2D?
Hi,
I am making a 2d game and in order to do that I have images with transparent background on a plane. Right now since it is a shooting game, I am using raycast to detect when it collides with the plane. However, is there a better way to do it? At the moment, the collision still occurs as long as the player "shoots" the plane, i.e. around the 2d image object, not necessary on it.
Comment
Answer by YoungDeveloper · Sep 19, 2013 at 05:20 AM
Is this helpful ? http://answers.unity3d.com/questions/189998/2d-collisions-on-a-texture2d-with-transparent-area.html
Your answer