Hello and happy new year guys!!
I have a problem when use rotation.
Example: When rotate pitch, if rotate yaw, all rotation angles change. Test with absolute and relative and result is some.
Any way to get the real angle of pitch?
Thanks for help.
Question: Get real pitch angle after rotate yaw
Question: Get real pitch angle after rotate yaw
If translation=Error: reply="Sorry, Im Spanish": Endif
Re: Question: Get real pitch angle after rotate yaw
Without code, it's hard to anserw you
!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 6.12LTS - 64 bits
Re: Question: Get real pitch angle after rotate yaw
EntityPitch has two modes: #PB_Engine3D_Raw and #PB_Engine3D_Adjusted
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Re: Question: Get real pitch angle after rotate yaw
This is my simple solution, I know it's not the best, but for now it works for me
Code: Select all
pitch.f= EntityPitch(entity,#PB_Engine3D_Adjusted)
If pitch>=90 Or pitch<=-90: pitch-180:EndIf
If pitch<=-300: pitch+360:EndIf
If translation=Error: reply="Sorry, Im Spanish": Endif