Horje
look rotation  only on y axis in unity Code Example
look rotation only on y axis in unity
        var dir = PlayerMovement.playerTransform.position - transform.position;
        Quaternion LookAtRotation = Quaternion.LookRotation(dir);

        Quaternion LookAtRotationOnly_Y = Quaternion.Euler(transform.rotation.eulerAngles.x, LookAtRotation.eulerAngles.y, transform.rotation.eulerAngles.z);
        transform.rotation = LookAtRotationOnly_Y;




Csharp

Related
listview thread error Code Example listview thread error Code Example
rad grid column wpf telerik read only based on property Code Example rad grid column wpf telerik read only based on property Code Example
c# loop 2 time tables Code Example c# loop 2 time tables Code Example
how to make colliders collide with some things but not other in unity Code Example how to make colliders collide with some things but not other in unity Code Example
byte[] to base 65 string in C# Code Example byte[] to base 65 string in C# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9