Vector3 forward = transform.TransformDirection(Vector3.forward) We are grounded, so recalculate move direction based on axes Public class SC_CharacterController : MonoBehaviour SC_CharacterController.cs using UnityEngine Create a new script, name it "SC_CharacterController" and paste the code below inside it:.Move the Main Camera inside "Player" Object and change its position to (0, 1.64, 0).Remove Capsule Collider component from Capsule and change its position to (0, 1, 0).Create new Capsule (Game Object -> 3D Object -> Capsule) and move it inside "Player" Object. Create a new Game Object (Game Object -> Create Empty) and name it "Player".Here we will create a controller that will be used by our player. To make an FPS game in Unity we will need a player controller, an array of items (weapons in this case), and the enemies. First-Person Shooter (FPS) is a sub-genre of shooter games where the player is controlled from a first-person perspective.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |