FPS Controller

PlayerController2.cs

Size: 1.29 KB

You need to login to download this file.

  1. Create a playermodel
  2. Adjust its transform
  3. Give it a Rigidbody
  4. Drag the main camera as a child object of the playermodel
  5. Adjust the camera to its desired position
  6. Add the PlayerController2.cs script to the playermodel
  7. Give in some values that suets your project
  8. Change the rigidbody to get a free look
    1. Use Gravity = X
    2. Is Kinematix = ✓
  9. Now change the rigidbody for the movement
    1. Use Gravity = ✓
    2. Is Kinematix = X
    3. Interpolate = Interpolate
    4. Contraints = Freeze rotation = X, Y and Z

recommended