2D Physics in a 3D Context: My First Card Game!

It was very fun for me to create my first ever card game in Unity!

wheel.jpg

It was also the first time I used 2D Physics in a 3D context!
Which if you didn't know, is completely possible in Unity and can be very useful in a Jam context. The 2D physics being much easier to setup and use, it was the perfect solution for a card game.

Unityem2018-12-04/em12-02-31.png

However, this caused one major change: The 2D colliders will only be working in the XY axis, no matter the rotation of the object it seats on. So, the card being flat on the table means their 2D collider cannot work straight away!

Easy enough to fix, I put everything under a parent object including lights and cameras, and rotated that object 90 degrees!

Unityem2018-12-04/em12-00-07.jpg

Luckily I didn't have to use the skybox nor the gravity...