Day 4: Making the Leap into the Third Dimension!




Day 4 marks a huge milestone in my #15Days15Games challenge: my first 3D game is complete! I decided to tackle a classic genre, the one-button endless runner, to get a solid grasp of the fundamentals.
The Goal: The main objective today wasn't complex game design, but rather understanding the shift from 2D to 3D development in Unity. How does physics change? How is movement handled? How does the camera and perspective work?
What I Learned: The biggest learning experience was with Unity's 3D Rigidbody
component. Instead of just setting a 2D velocity, I used Rigidbody.AddForce()
with a ForceMode.Impulse
to give the player's cube a really satisfying and responsive jump. I also used a coroutine to handle the obstacle spawning, which gave me more control over the random timing between spawns. Finally, I implemented a time-based scoring system using InvokeRepeating
that rewards the player for every second they manage to survive.
It was a fantastic challenge and a great way to break the ice with 3D development. I'm excited to build on these new skills!
Leave a comment
Log in with itch.io to leave a comment.