- Home /
Collision detection for sprite
For my 2d game, I want to detect collision between two sprites. I don't want to use any collider but I want to perform it manually. I think I have to use rectangular region of sprite and use update method to check for collision but now sure about it.
So what is the way in unity for this?
You'll find your answer here, http://answers.unity3d.com/questions/581014/2d-collision-detection-box-intersection-without-ph.html
Please post it as answer so that other members can use it also.
Answer by NickP_2 · Jul 18, 2014 at 07:48 PM
You could use 2D colliders, and tags to separate one from each other? Via scripts ofc.
2D Collider not detect any collision here for me. If you want to check this then run following example yourself and confirm that no collision method called at runtime. Any thanks for your suggestion and wait for other.
Unity – How to display projectile trajectory path in Unity 3D?
Your answer
Follow this Question
Related Questions
Ignore collision in particular situation 3 Answers
Ignore Collision for 2d Collider 2 Answers
OnCollisionEnter2D Questions 0 Answers
How to achieve 2D pixel perfect collision physics (like Badland) in Unity3D ? 3 Answers
how do i keep a sprite on a plane from flipping around when colliding? 3 Answers