Sign in to follow this  
MurphyIdiot

Support for Quaternion Orientation in EPIC

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this