Quantcast
Channel: Latest Questions by Griffo
Viewing all articles
Browse latest Browse all 94

_partical.startRotation = transform.eulerAngles.y

$
0
0
Hi, I'm trying to match a float to a transforms Y eulerAngles, but I'm getting a strange result. I debug the out put, looking in the inspector the transforms Y axis is 107.583 the debug says the same to as in .. Debug.Log("transform.rotation.y of (" + transform.root.name + ") is " + transform.eulerAngles.y); But when using .. _partical.startRotation = transform.eulerAngles.y; looking at the Start Rotation of the partial effect in the inspector its showing 6181.536 Do I need to convert the eulerAngle value to a float? Thanks.

Viewing all articles
Browse latest Browse all 94

Trending Articles