Camera-Relative Movement in Unity 3D Explained

https://www.youtube.com/watc...
What the heck does all this code mean?! Today we’ll break down every line so that you can move your characters relative to the camera’s rotation in Unity 3D! Learn the basics of Vectors and SPACE and how to transform between the two. Put your programming hat on and let’s get started! ACCESS PROJECT FILES & SUPPORT THE CHANNEL: 💛 https://www.patreon.com/iHeartGameDev iHeartGameDev Merch: 💛 https://www.iheartgamedev.com WANT MORE? Check out previous videos in this growing series of tutorials: ✅ https://www.youtube.com/playlist?list=PLwyUzJb_FNeQrIxCEjj5AMPwawsw5beAy ✦ Like the vid? Please consider Subscribing! https://bit.ly/2YdIb6j SOCIAL: ✦ Discord https://discord.gg/2AxUvsa ✦ Twitter https://twitter.com/NickyBoccuzzi LINKS FROM THE VIDEO: 🤖 Download Jammo for YOUR game: https://assetstore.unity.com/packages/3d/characters/jammo-character-mix-and-jam-158456 ⭐ And Check Out @Mix and Jam ! https://youtube.com/MixAndJam ►TIMESTAMPS: Intro: 0:00 Camera Relative Overview: 0:32 What are Vectors: 1:32 Vector3s Explained: 2:08 Directional Unit Vectors: 2:56 First Code Breakdown: 3:52 Moving GameObjects: 4:47 Coordinate Spaces Explained: 5:34 Moving Gameobjects in Space: 8:58 Second Code Breakdown: 9:50 Rotating Vectors Explained: 10:23 Rotating Vectors Example: 12:00 Moving in World and Local Space: 14:05 Removing Y Value to Stay Grounded: 15:30 Last Recap: 16:55 Final Words: 17:56
Home
/
Indie Game Developers
/
iHeartGameDev
/
Camera-Relative Movement in Unity 3D Explained