mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-15 10:36:44 -04:00
100% working time synchronization and skeletal animation interpolation
This commit is contained in:
parent
ad9054fbd7
commit
3aea20fa94
4 changed files with 117 additions and 79 deletions
|
@ -36,6 +36,10 @@ void ReadPropEntries(Prop_t& Prop){
|
|||
}
|
||||
}
|
||||
|
||||
float DotProduct(Rotation_t * q1, Rotation_t * q2){
|
||||
return q1->x*q2->x + q1->y*q2->y + q1->z*q2->z + q1->w*q2->w;
|
||||
}
|
||||
|
||||
void CombineQuaternions(Rotation_t * Destination, Rotation_t * Source){
|
||||
// the constructor takes its arguments as (x, y, z, w)
|
||||
float dx = Destination->x;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue