Is There a Panda Way for This?

Something I noticed about the .getH() method awhile back… The Heading value may not be between 0 and 360. Of course this can be mathematically calculated, that’s what I’ve been doing, but is there a built in Panda Function or Method that can convert the .getH into degrees between 0 to 360?

Or

Is there another way period to retrieve an objects direction?

You can do:
obj.getH() % 360.0

Which will bring it in that range.

Note that, in general, the getH() value will return exactly whatever value you assigned it earlier, except in the case that the H value had to be computed implicitly, in which case it will return a number in the range -180 … 180.

David