CreepyLex
Knex   Netherlands
 
 
all my friends are creepers they explode


Currently Offline
Last Online 3 hrs, 0 mins ago
Artwork Showcase
The Division
Screenshot Showcase
The Division
1 2

Recent Activity

837 hrs on record
last played on Jan 18
11.9 hrs on record
last played on Jan 16
196 hrs on record
last played on Jan 15
CreepyLex Jul 24, 2018 @ 2:01pm 
uit een glas
BoyanBarney Jul 24, 2018 @ 9:25am 
leks hoe drink jij mieren
CreepyLex May 29, 2018 @ 11:56pm 
gvd
Yoonah May 29, 2018 @ 1:27pm 
Flashcaptain: btw ik heb net mieren opgedronken volgensmij
Yoonah May 24, 2018 @ 1:59am 
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ThirdPersonCamera : MonoBehaviour {
Vector2 mouseLook;
Vector2 smoothV;
public float sensitivity = 5.0f;
public float smoothing = 2.0f;

GameObject character;

// Use this for initialization
void Start () {
character = this.transform.parent.gameObject;
}

// Update is called once per frame
void Update () {

var md = new Vector2 (Input.GetAxisRaw ("Mouse X"), Input.GetAxisRaw ("Mouse Y"));

md = Vector2.Scale (md, new Vector2 (sensitivity * smoothing, sensitivity * smoothing));
smoothV.x = Mathf.Lerp (smoothV.x, md.x, 1f / smoothing);
smoothV.y = Mathf.Lerp (smoothV.y, md.y, 1f / smoothing);
mouseLook += smoothV;
mouseLook.y = Mathf.Clamp (mouseLook.y, -90f, 90f);

transform.localRotation = Quaternion.AngleAxis (-mouseLook.y, Vector3.right);
character.transform.localRotation = Quaternion.AngleAxis (mouseLook.x, character.transform.up);
}
}
CreepyLex Apr 19, 2018 @ 1:50am 
thats gay dude