Ok… I feel very stupid to post this but it’s making me crazy…
I always though that the heading, in setH or getH was in degree… But with a strange bug in my game, I discover that it certainly not on 360 degree…
I have a dummy node use to rotate a satellite around a planet. I was printing his Hpr to correct another bug that is not related. But my surprise was that:
Why did you post this code? I see it’s something rotating around a planet but my question was about Hpr… I’m pretty advance in my game and I tough I knew how Hpr were working but right now I’m confuse… Maybe some explication with your code?
sorry, i thought this code could also be such nice in this tread. im going to post it into code snippsel. it just such a nice animated graphic whcih shows you how to rotate something around a other object.
#1 problem goes from the modeling
check where the pivot point is
#2 Check your something like getMat().getRow(1)
the diferent values of getRow goes into diferrent result.
( dont know if this concern or not I just remember the *elapsed function in ralph sample )
#3 Check the orbital planet sample, might help you
The fact that you have set the H to, say, 20000 doesn’t matter - panda automatically wraps around. If you do getH and it still returns 20000, thats OK. Panda automatically does the wrapping around at 0 and 360.
Someone correct me if I’m wrong or if I understood the problem wrong.