How to make a video game, First Person Shooter.In this tutorial you will begin your exciting journey through the first part of how to make your very own video …

22 COMMENTS

  1. 5:00 dude, the cube is more optimized than the plane. The plane is the least optimized for performance, it has more polygons and a mesh collider. The quad would be the best performance model for a ground. Still, there is such a tiny difference in performance that it doesn't really matter.

  2. this error comes up – ******Assets/MouseLook.js(2,20): UCE0001: ';' expected. Insert a semicolon at the end.******

    this i had written

    #pragma strict
    var lookSensitivity : float = 5;
    var yRotation : float;
    var xRotation : float;
    var CurrentXRotation : float;
    var CurrentYRotation : float;
    var yRotationV : float;
    var xRotation : float;
    var lookSmoothness : float; = 0.1;

    function Update ()
    (
    yRotation += Input.GetAxis("MouseX") " lookSensitivity;
    xRotation += Input.GetAxis("MouseY") " lookSensitivity;

    Transform.rotation = Quaternion.Euler(xRotation, yRotation, 0);
    )

  3. I Have This Code In

    #pragma strict
    var lookSensitivity : float = 5;
    var yRotation : float;
    var xRotation : float;
    var CurrentXRotation : float;
    var CurrentYRotation : float;
    var yRotationV : float;
    var xRotationV : float;
    var lookSmoothness : float = 0.1;function Update ()
    {
    yRotation += Input.GetAxis("Mouse X") * lookSensitivity;
    xRotation -= Input.GetAxis("Mouse Y") * lookSensitivity;

    CurrentXRotation = Mathf.SmoothDamp(CurrentXRotation, xRotation, xRotationV, lookSmoothness);
    CurrentYRotation = Mathf.SmoothDamp(CurrentXRotation, yRotation, yRotationV, lookSmoothness);

    transform.rotation = Quaternion.Euler(xRotation, yRotation, 0);
    }

    But I Dont Know What Is Wrong

Comments are closed.