# Set rotation of GameObject

Hi ,

I have simple question. I tried convert this non-deterministic code:

So, how can I make the deterministic code work like the non-deterministic one?

Please help, I will be glad for any kind of help

I have simple question. I tried convert this non-deterministic code:

..to TrueSync-deterministic:Quaternion fromRotation = transform.rotation;

Quaternion toRotation = Quaternion.Euler(0, 0, angle);

transform.rotation = Quaternion.Lerp (fromRotation, toRotation, turningSpeed * Time.fixedDeltaTime);

//Get present rotation of GOBut it gave this error..TSQuaternion fromRotation = GetComponent`<TSTransform>`

().rotation;

//Set final rotationTSQuaternion toRotation = TSQuaternion.Euler (0,0, angle);

//PROBLEMATIC line, when GO have to slowly turn from actual position to a new positionGetComponent`<TSTransform2D>`

().rotation = TSQuaternion.Lerp (fromRotation, toRotation, turningSpeed * Time.fixedDeltaTime);

So, how can I make the deterministic code work like the non-deterministic one?

Please help, I will be glad for any kind of help

0