Hi all,
I've got a pawn that runs in PHYS_Flying mode. However I want to restrict it on the roll and pitch axes at times so that it appears it is standing.
This works fine offline by calling faceRotation() from the playerController class.
However in LAN games, faceRotation seems to have no effect as client's pawns always face in the direction of their view (or playerController rotation).
I tried creating a replicated function (lets call it serverFaceRotation) to call from playerController.UpdateRotation() which does the exact same thing as faceRotation(), only it replicates from the client calling it to the server. Now i get a really nasty flicker between the correct rotation and the view rotation of the client's playerController - it seems that serverFaceRotation() is called and then something overrides it straight away... but not so soon that the pawn doesnt set itself to the correct rotation for a split second first.
Is there some native code interfering here? Regardless, how can i stop this jitter from happening?
Cheers!
I've got a pawn that runs in PHYS_Flying mode. However I want to restrict it on the roll and pitch axes at times so that it appears it is standing.
This works fine offline by calling faceRotation() from the playerController class.
However in LAN games, faceRotation seems to have no effect as client's pawns always face in the direction of their view (or playerController rotation).
I tried creating a replicated function (lets call it serverFaceRotation) to call from playerController.UpdateRotation() which does the exact same thing as faceRotation(), only it replicates from the client calling it to the server. Now i get a really nasty flicker between the correct rotation and the view rotation of the client's playerController - it seems that serverFaceRotation() is called and then something overrides it straight away... but not so soon that the pawn doesnt set itself to the correct rotation for a split second first.
Is there some native code interfering here? Regardless, how can i stop this jitter from happening?
Cheers!