Skip to content

Commit

Permalink
Calculate bone rest transforms + inv transforms
Browse files Browse the repository at this point in the history
Parse anim frames
Parse anim framegroups
Add build_skeleton function
Add test server-side and client-side skeleton object arrays
Add quaternion defs to math header
Add test playback of animation in IQM draw code
  • Loading branch information
blubs committed Feb 11, 2024
1 parent 9577c77 commit b915a9b
Show file tree
Hide file tree
Showing 3 changed files with 455 additions and 52 deletions.
4 changes: 4 additions & 0 deletions source/mathlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ extern const matrix3x4 matrix3x4_identity;
extern const matrix4x4 matrix4x4_identity;

void VectorTransform (const vec3_t in1, matrix3x4 in2, vec3_t out);
void AngleQuaternion( const vec3_t angles, vec4_t quaternion );
void QuaternionMatrix( const vec4_t quaternion, float (*matrix)[4] );
void QuaternionSlerp( const vec4_t p, vec4_t q, float t, vec4_t qt );


// Prototypes added by PM.
void RotatePointAroundVector( vec3_t dst, const vec3_t dir, const vec3_t point, float degrees );
Expand Down

0 comments on commit b915a9b

Please sign in to comment.