Push Obstacles Using a Character Controller (Unity Tutorial)

Опубликовано: 12 Сентябрь 2021
на канале: Ketra Games
35,789
944

In this Unity tutorial we're going to look at how we can push obstacles around using a Character Controller and Unity’s physics system.

We'll start by adding a box for the character to collide with. We'll add a Rigidbody component to it so that it reacts to physics,

Next, we'll create a script to apply a force to the box every time the character collides with it.

Then, for a bit of variety, we'll add a soccer ball for the character to kick around!

The project files are available to our patrons here:
►   / 56046140  

Want to follow along? This project is a good starting point
►   / 53286420  

The final script is available for free here
► https://dotnetfiddle.net/qyuEKL

Help support our work:
► Patreon:   / ketragames  
► Ko-fi: https://ko-fi.com/ketragames

Follow us:
► Ketra Games: http://www.ketra-games.com
► Patreon:   / ketragames  
► Twitter:   / ketragames  
► Facebook:   / ketragames  

Introduction - 0:00
Adding a box to collide with - 0:36
Creating the push script - 2:02
Adding a soccer ball to kick - 04:39
Summary - 05:40

#KetraGames #LearnUnity #UnityTutorials #UnityTips


Смотрите видео Push Obstacles Using a Character Controller (Unity Tutorial) онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Ketra Games 12 Сентябрь 2021. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 35,789 раз и оно понравилось 944 посетителям.