I need help with smooth rotating of a third person character, here is a video where i explain what i am having trouble with:
I need help with smooth rotating of a third person character, here is a video where i explain what i am having trouble with:
Another good case for alignAxisToVect()!
I’ll assume that these are the lines that are doing the ‘turning’:
own.localOrientation = empty.localOrientation
Replace those with:
own.alignAxisToVect(own.getVectTo(empty)[1], 1, <i>0.1</i>)
Where the ‘0.1’ is the turning speed. The closer that value is to 1.0, the faster the object will turn.
Thank you so much man, this really helped!