![]() We ended up discontinuing the use of Gamebryo's Slerp method altogether and calling to Havok to have it do the rotations for us. On top of that, the Slerp ( spherical linear interpolation) did not even work properly with Gamebryo, often causing objects to rotate 350 degrees to get to the target, rather than 10 degrees. Want to lerp a Matrix? Sorry, convert it to a Quaternion, lerp it, then convert it back to a matrix. ![]() Want to lerp ( linearly interpolate) a Quaternion? Go for it. Want to do that with a Quaternion? Do it yourself, there is no function. Want to make your matrix an identity matrix? Call 'MakeIdentity( )'. Gamebryo included a lot of functionality in either the Matrix or Quaternion classes, but not both. ![]() Quaternion function: FromAngleAxisX( float angle) ![]() Matrix function: MakeXRotation( float angle) Gamebryo (the game engine used to make LEGO Universe as well as other titles such as Fallout 3, Oblivion, Epic Mickey, and more) had some very annoying quirks that made my life a little bit more difficult, as well as some of my coworkers'.īoth the Matrix and the Quaternion classes had multiple ways to create rotations, and naturally Gamebryo used no naming convention between these two classes.Ĭreate a Rotation from the X axis and an angle? If you didn't catch it in the title, there was some sarcasm in there. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |