Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Downloads

  • BasicMovement.cs

Missing 1 full-res photo, 1 file, as this post has not yet been imported.

Content

Hey hi hello! I'm super excited to finally share a new video and tutorial! Today we will learn how to move our characters relative to the camera's angle.

Understanding the code that we right is super important! So while we are legitimately looking at about a dozen lines of code and breaking them down one at a time, it's much better than simply copy-pasting code off of stack overflow, the unity forums or github and not knowing how it works!

Let's learn about vectors and space to get our characters moving in the right direction!

Files

Previews only

Camera-Based Movement in Unity 3D Explained (PATREON)

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! Thank you for supporting the channel on Patreon! ►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

Comments

No comments found for this post.