Edit: hmmm..... well the more to the left you turn the lower the yaw gets. And opposite for the right. Its not really an axis thing, like it dont circle around or anything.
I really don't get the concept Pitch and Yaw. In confuzzling.
Rollback Post to RevisionRollBack
Make sure you follow me on twitter! @DarkDiaMiner IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
You said getPitch() and getYaw(), but not setRot().
These dont work for what I need, I thought it wpuld be measured 1-360 and be that easy but the yaw decreases indefinitely when turning left, and the opposite towards the right.
These dont work for what I need, I thought it wpuld be measured 1-360 and be that easy but the yaw decreases indefinitely when turning left, and the opposite towards the right.
I really don't get the concept Pitch and Yaw. In confuzzling.
Rollback Post to RevisionRollBack
Make sure you follow me on twitter! @DarkDiaMiner IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
These dont work for what I need, I thought it wpuld be measured 1-360 and be that easy but the yaw decreases indefinitely when turning left, and the opposite towards the right.
So you can use setRot() to set the axis, so it remains as a positive integer.
Actually, getYaw and getPitch wont do 1-360, it adds up every time you spin 360 degrees so if you spin 360 twice the getYaw would be 720, so you would have to use the modulo to get the Yaw/pitch, (the modulo is %)
Ahhhhh!! My brain thanks though this is some good info. Yaw is horizontal and pitch is vertical. I used modtick function to tell me the yaw every time I turned around. It wasn't fun.
These dont work for what I need, I thought it wpuld be measured 1-360 and be that easy but the yaw decreases indefinitely when turning left, and the opposite towards the right.
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
Thanks
Edit: hmmm..... well the more to the left you turn the lower the yaw gets. And opposite for the right. Its not really an axis thing, like it dont circle around or anything.
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
To set the pitch and yaw:
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
You said getPitch() and getYaw(), but not setRot().
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
These dont work for what I need, I thought it wpuld be measured 1-360 and be that easy but the yaw decreases indefinitely when turning left, and the opposite towards the right.
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
Thats why I said:
IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
So you can use setRot() to set the axis, so it remains as a positive integer.
True dat.
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumCheck out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
Ahhhhh!! My brain
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
Or use:
function modTick(){ if(Entity.getYaw(Player.getEntity()) <= 0) Entity.setRot(Player.getEntity(),360,Entity.getPitch(Player.getEntity()); if(Entity.getYaw(Player.getEntity()) >= 360) Entity.setRot(Player.getEntity(),0,Entity.getPitch(Player.getEntity()); }This forces the players yaw to be between 0 and 360.