Skip to main content
‹ Back to Tutorials
Intermediate Unity

Making a Mobile Bounce Game with Unity 3D and Playmaker - Creating the Ball and Paddle

Dec 18, 2020
About this tutorial

Beginner Game Design tutorial series creating a simple Bounce type game using Playmaker within Unity 3D. In this video, we will create the ball and the paddle along with the Physics Material that makes the ball bounce. Absolutely NOCODE. Also make a skateboard game playlist: https://bit.ly/34m4SHT

Written Guide

This mobile bounce-game tutorial creates the two physical pieces the game revolves around: the ball and the curved paddle. It covers tagging the ball, using ProBuilder's shape tool to build an arch paddle, nesting it for clean scaling, and dialing in a physics material so the ball bounces freely around the walled scene built earlier.

Create and tag the ball

Add a 3D sphere named ball and give it a ball tag (add it under the tag dropdown, then assign it) so collisions can later identify it. Tagging early makes the detection logic in following tutorials straightforward.

Build the paddle with ProBuilder

Install ProBuilder from the Package Manager if needed, then open Tools, ProBuilder, Editors, Shape Editor and choose the Arch shape. Set depth to 1 unit, increase the radius for size, and raise the number of sides until the curved edge is smooth. Adjust the arch degrees so it is a gentle curve rather than a full half-circle, then click Build to create the 3D paddle.

Nest the paddle for clean scaling

Rotate the paddle on Z so its curved surface faces up, center it under the ball, then place it inside a parent game object named controller. Scaling the parent (to about 0.5) resizes the whole assembly without disturbing the paddle's own rotation, and you can move the controller to the bottom of the screen. Shrink the ball to around 0.5 and move it up top.

Set up physics so the ball bounces

Add a Rigidbody to the paddle with Use Gravity off, Is Kinematic on, and rotation frozen. Add a Rigidbody to the ball with gravity on and Z position frozen, so it stays on a flat plane and only bounces left, right, up, and down. Create a physics material named bounce and apply it to the paddle, ball, and walls (it attaches to each collider's material slot). At first the ball just drops, so in the bounce material set dynamic and static friction to 0, bounciness to 1, and bounce combine to average and maximize. Now the ball bounces lively around the scene, with paddle movement and a ball trail coming in the next tutorial.

Unity tools by Bliz Studio
Built for our own games — now on the Asset Store

Multi Tag — unlimited hierarchical tags for any GameObject. Hierarchy Pro — style your whole hierarchy with rules. Made by a Unity dev, for Unity devs.

Explore our Unity assets →