Working with Unity New Input System

Making a Bouncy Ball with different variations of jump strength

Challenge Prep:

First we are going prep the scene so that we can have everything setup before the scripting can start. We will begin by created an sphere 3D object that will represent our bouncy ball and then a 3D plane which will the floor.

I added a Green Material to give the ball a highlight to add difference from the plane.
the Gravity affecting the ball.
The basic setup for the Input Actions should look like this.

Adding Interactions:

If we were to break down what is required for the Jump button via logic, we basically want the Jump button to have more jumping force the longer we hold down the button. We also want the button to preform a regular jump when we are just tapping the button.
Therefore we will need a “Hold” interaction for the Jump Button.

Scripting:

We start by making our Input Actions into a C# script (if you haven’t done so already)

--

--

A Designer, an Illustrator and a massive tech geek aspiring to become a professional Unity Developer.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Simon Truong

A Designer, an Illustrator and a massive tech geek aspiring to become a professional Unity Developer.