ReePrime
Unity - Rotation problem (2)

Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.

Unity - Rotation problem (2)

S
Shikura95

75 Views • Feb 21, 2013

Description

Source code :
float angle = Mathf.MoveTowardsAngle(transform.eulerAngles.y, transform.eulerAngles.y, Input.GetAxis("Mouse X")*50*Time.deltaTime);

transform.eulerAngles = new Vector3(transform.eulerAngles.x,angle, transform.eulerAngles.z);

Keywords & Tags