I have model that I'm translating along the x axis e.g.(pModel.translate(2,0,0)).
At a certian point on the x axis e.g.(if pModel.transform.position > 50 then) I would the model to rotate relative to its y axis while still translating:
if pModel.transform.position > 50 then
The problem is that when the rotation starts the model curves off its straight line direction.
Can anyone tell me how to keep the model on the same direction whilst rotating???