You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, on the panda3d API reference page http://www.panda3d.org/reference/devel/python/panda3d.core.LQuaternionf the only function even mentioning exponent returns LVecBase4f and not a Quaternion and seems to be inherited from LVecBase4f instead of doing something quaternion-specific.
Is such a functionality implemented somewhere and I'm just missing it? Otherwise, it would be very useful if this could be added.
The text was updated successfully, but these errors were encountered:
For what it's worth, smooth mover (which I am currently using as a replacement for this calculation) looks like it has gimbal lock limitations. Therefore, having this would be a great addition to do this calculation properly without such limitations.
The common concept of exponent calculation for quaternions appears to be missing from panda3d.core.LQuaternionf/panda3d.core.LRotationf.
When interpreting a quaternion as a relative rotation (and not an orientation), you could e.g. want to apply only half or only 30% of a rotation. The computation of this appears to be commonly notated with q as base and e.g. 0.5 or 0.3 as exponent:
q ** 0.3
(as described here: https://math.stackexchange.com/questions/162863/how-to-get-a-part-of-a-quaternion-e-g-get-half-of-the-rotation-of-a-quaternion/162892#162892 )However, on the panda3d API reference page http://www.panda3d.org/reference/devel/python/panda3d.core.LQuaternionf the only function even mentioning exponent returns LVecBase4f and not a Quaternion and seems to be inherited from LVecBase4f instead of doing something quaternion-specific.
Is such a functionality implemented somewhere and I'm just missing it? Otherwise, it would be very useful if this could be added.
The text was updated successfully, but these errors were encountered: