Hi! I’m wondering how we could convert object.orientation.to_euler().x in an interval beetween 0 and 2*pi… Is there a function for that in the API? Or is there a math formula to do that? Thanks!
EDIT: finally I made that:
ori = own.orientation.to_euler().x if ori < 0: ori += 2*pi ori = cos(ori)+1
This make ori clamped beetween 0 and 2 and this is perfect for my needs