Click to Move in 3D w/ Input System - Unity Tutorial

Uploaded by samyam
Share: Twitter Facebook
Want to start a career in game development? Learn more about SNHU's program: https://snhu.edu/samyam Thank you to SNHU for sponsoring this video!

? Get the Source Code ?
https://www.patreon.com/posts/60737375

? Support Me ?
Patreon: https://www.patreon.com/samyg
Donate: https://ko-fi.com/samyam

In this video I'll show you how to use the new Input System to move your player to where your mouse has clicked in 3d space. I show you how to move the player with MoveTowards, the CharacterController component, and a Rigidbody component to fit your needs. We will then rotate the player to face the direction it is moving in, and also filter out certain objects from being selected with layers.

??THANK YOU TO ALL MY PATRONS ??

►⏱️ Timestamps ⏱️
0:00 Intro
2:04 Click to Move with MoveTowards (Ignores Collisions)
12:37 Fix Player Passing through Floor
13:41 Moving with a CharacterController
16:26 Moving with a Rigidbody
19:19 Rotate Player Towards Moving Direction
20:39 Filter Out Objects with Layers
22:56 Outro

❯❯❯ My Links ❮❮❮
? Patreon ?
https://www.patreon.com/samyg
? Discord Server ?
https://discord.gg/SwCKB3Q
? Twitter ?
https://twitter.com/samyam_utube
? Facebook ?
https://www.facebook.com/samyam.youtube/
? Music ?
Ambient Gold
streambeats.com
? Like and Subscribe! ?

?️ Computer Setup ?️
*As an Amazon Associate I earn from qualifying purchases.
https://www.amazon.com/shop/samyam

Disclosure: This post may contain affiliate links, which means we may receive a commission if you click a link and purchase something that we have recommended. While clicking these links won't cost you any money, they will help me fund my development projects while recommending great assets!

#madewithunity #gamedev #unity