Hi,
DOTween is rocking my world, it's been brilliant so far, however, I have hit an issue.
For some reason when using DOLocalRotate, rotation stops at 90 on the X axis. It happens with all rotation modes. Here is the code I am using to generate the rotation value:
if (modifyEnabled == true && modifyRotationEnabled == true)
{
calculatedEularRotation = modifyTarget.localEulerAngles;
if(modifyRotationX == true)
{
calculatedEularRotation.x = destination.x;
}
if(modifyRotationY == true)
{
calculatedEularRotation.y = destination.y;
}
if(modifyRotationZ == true)
{
calculatedEularRotation.z = destination.z;
}
rotationTween = modifyTarget.DOLocalRotate(calculatedEularRotation, modifyRotationSpeed, rotateMode);
}
Any ideas as to what I am doing wrong.
Thanks!