How to Make Basic Movements for Unity Beginners | Unity | Game App Studio

Опубликовано: 15 Октябрь 2024
на канале: Game App Studio
24
1

#3D #character #movement #Unity Beginners

Here we come with another video which is all about how to make 3D character errors on a
page. In this video, you guys can show me a 3D character error page in Figma.

You can do this with the help of a few simple steps:
1. Adding and Setting Up the Ground
2. Create a game object and rename it to Player
3. Next add a material for the ground
4. Change color the of material according to you
5. Drag and Drop the material onto plane object(Ground)
6. Next add a new script component to your player and call it Player Movement
7. Add a float variable and rename it move speed
8. Next add a reference to our Character Controller and name it ch
9. In void Start function assign our variable ch to Character Controller
10. In void Update function create two float variables caleed x and z
11. In float x call it horizontal input multiplied by move speed and time delta time
12. In float z call it vertical input multiplied by move speed and time delta time
13. And last we will type ch variable and call Character’s Controller function move()
14. In brackets make new vector3 and in brackets assign those two variables(x, z) and for y leave 0
15. Now head back to Unity
16. Add Character Controller to player
17. Change the move speed value from 0 to 5
18. Now hit the play button

For more descriptive information on these steps involved go through the complete video.

Chapters
0:00 Adding and Adjusting ground
0:19 Create Gameobject and rename it Player
0:28 Add material for ground
0:34 Change the color
0:39 Drag and Drop material onto plane
0:42 Add a script named PlayerMovement and open it
1:02 Add a moveSpeed variable
1:09 Add reference to the Character Controller
1:15 In start assign ch to Character Controller
1:26 In update create two variables
1:55 Add ch variable and call Character Controller function Move()
2:07 Head back to Unity
2:20 Change move speed value to 5
2:31 Add Character Controller to player
2:36 Hit Play

Check out our other parts of this video to learn about unity 3D game development.
   / gameappstudiocampus  

For more unity 3D game development tutorial basics to advance subscribe to our channel.
Subscribe to our YouTube channel :    / gameappstudiocampus  

Visit us here : https://gameappstudio.com/

Follow us on Facebook :   / gameappstudio  

Hit follow on Instagram : https://instagram.com/gameappstudio?u...

Would you like the game app studio to speak at your school or organization?
Contact us at : https://gameappstudio.com/contact-us
Or mail us at : [email protected]

#3D #character #movement #Unity Beginners #gameappstudio