Support for Quaternion Orientation in EPIC

Started by
1 comment, last by MurphyIdiot 16 years, 1 month ago
I am using EPIC (http://www.mindcontrol.org/~hplus/epic/) in my game and was wondering if anyone has added support for quaternion based orientation prediction into it. Or if anyone has a suggestion on how to handle orientation prediction in a similar way to how EPIC predicts position.
Advertisement
EPIC uses a template, so you could instantiate it with <4, float> as arguments.
The output you get won't be normalized, so normalize after you read a value.
Other ways of interpolating a quaternion might be to interpolate in axis-angle space, or interpolating in Euler angle space. You might want to experiment with converting to/from different spaces when interpolating.
enum Bool { True, False, FileNotFound };
Thanks hplus! Using 4 floats and normalizing the quaternion did the trick.

Thanks for the great extrapolator. We plan to use it for all sorts of networking goodness on Zero Gear.

This topic is closed to new replies.

Advertisement