Solved Smoothly change a players yaw

Discussion in 'Plugin Development' started by Skionz, Sep 30, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Skionz

    Is it possible to change a players yaw with vectors? I am using the teleport method right now I would like it to be more smooth.
     
  2. Offline

    fireblast709

    Skionz change the yaw in steps (a certain amount of degrees per tick, in such a way that after x ticks the player is at the destination with the correct yaw)
     
    Skionz likes this.
  3. Offline

    adam753

    It will never be particularly smooth, because of the limitation of the server sending packets to the client. With that said, your best shot at doing this without a client mod (don't) is what fireblast said.
     
  4. Offline

    RingOfStorms

    as fireblast709 said, you should interpolate from a yaw towards a target yaw in a predicted timeframe. I would recomend using packets and not teleporting so you can affect only the yaw rather than the position as well.

    I would also read up on the difference between spherical (quaternion) interpolation and linear (matrix) interpolation. You will most likely use linear as that is the easiest and most simplistic implementation of this kind of interpolation.
     
Thread Status:
Not open for further replies.

Share This Page