🚀 Adding Force to Objects in Unity: Beginner's Guide! 💥🎮

Published: 27 May 2022
on channel: VionixStudio
12,753
88

In this tutorial let’s see how to add force to an object in Unity and understand the type of forces that you can use.

Adding force in Unity requires a Rigidbody. So, add a Rigidbody component before adding your force script.

Addforce in Unity takes two inputs. The first one is a Unity Vector3 that tells the direction of force. The second input is the type of force to be applied.

Steps to Add force
Add Rigidbody component to the cube.
Make sure the Rigidbody is not set to Kinematic.
Create a new script and add it to the cube.
Copy and paste the below code to the script.
Play the game and a force will get applied on the start of the game.

Read more on https://vionixstudio.com/2021/11/22/h...


On this page of the site you can watch the video online 🚀 Adding Force to Objects in Unity: Beginner's Guide! 💥🎮 with a duration of hours minute second in good quality, which was uploaded by the user VionixStudio 27 May 2022, share the link with friends and acquaintances, this video has already been watched 12,753 times on youtube and it was liked by 88 viewers. Enjoy your viewing!