Solved Change rotation of Location?

Discussion in 'Plugin Development' started by FritzFurtz, Jun 6, 2016.

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

    FritzFurtz

    Hey there! I have a Location loc, but its rotation is pretty random, so i want to change it manually to a set rotation. How do I change the rotation?
    Thanks
    FritzFurtz
     
  2. Offline

    mine-care

    @FritzFurtz you need to set the yaw and/or pitch depending on what you want to do exactly. ;)
     
  3. Offline

    Xerox262

    @FritzFurtz

    Location#setYaw(float);
    Location#setPitch(float);

    Yaw is the direction and Pitch is how angled your head is
     
  4. Offline

    FritzFurtz

    Thanks! I already thought i need to work with vectors. THX!
     
Thread Status:
Not open for further replies.

Share This Page