Рет қаралды 85
In this video I add a barrel roll mechanic to my Unity racing game in order to more quickly dodge rapidly approaching obstacles. The video covers:
* Adding the necessary bindings to the Input System so that the barrel roll can be triggered when the user triggers the respective input
* Having the plane dodge left or right by applying a force to its RigidBody
* Using a coroutine to have the plane do a 360 degree rotation
Timestamps:
00:00 Intro
00:20 Adding Input System bindings
00:55 Handling Input System events in script
01:30 Applying force to RigidBody
03:48 Using Coroutine to rotate the plane 360 degrees
05:26 Final product
Don't forget to like, subscribe, and hit the bell icon for more tutorials on game development techniques and to tag along on my game development journey!
Twitter: @make100games