Hello,
let me first tell you that Unity is such a great software! I installed this new version Unity 4.3 and I played with it a bit and I’m not sure if it’s possible so I came here to ask you if it’s possible to have sprites with 2D physics that can interact with my 3D objects that have Rigidbodies.
Can 2D physics and 3D physics interact with each other? Thanks!
He’s right. But there is a simple way to get the two to play nicely, at least a little bit.
Try making an empty game object with a Box Collider 2D attached to it and a Rigidbody 2D. Child your 3D object inside this empty game object and you’ll be able to generate collisions.
Something I will also try is to remove the 3D collider and 3D rigidbody from the 3D object and replace them with 2D instead of parenting to an empty game object and see if that works.
So those two physics work separate and there are ways to get them work together with a trick that you give 3d objects a 2D collider, I see. Hopefully someone from Unity team could comment on this? I’m making a 2.5D platform game and I’d love to have my player (which has a box collider) walk on a polygon collider floor.
at around the 47 minute mark he tries putting a 2D collider and 2D rigidbody on a 3D cube but it doesnt work BUT he forgot to put a collider on his sprite (realises this at the 55 minute mark). It worked.
So the solution seems to be replace the 3D collider and 3D rigidbody on 3D objects with their 2D counterparts or put 3D collider and 3D rigidbody on the sprites.
The reason obviously is as Lukas H points out that 2D and 3D physics are completly different physics engines so will not interact with each other.
And the answer to: Can 2D physics and 3D physics interact with each other?