mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
34 lines
762 B
C++
34 lines
762 B
C++
#include "stdafx.h"
|
|
|
|
#include "solver/SolverBody.h"
|
|
#include "solver/DebugSerializer.h"
|
|
|
|
namespace RBX
|
|
{
|
|
|
|
void SolverBodyDynamicProperties::serialize( DebugSerializer& s ) const
|
|
{
|
|
s & integratedLinearVelocity & integratedAngularVelocity & orientation & position & linearVelocity & angularVelocity;
|
|
}
|
|
|
|
void SolverBodyStaticProperties::serialize( DebugSerializer& s ) const
|
|
{
|
|
s & bodyUID & guid & isStatic;
|
|
}
|
|
|
|
void SymmetricMatrix::serialize( DebugSerializer& s ) const
|
|
{
|
|
s & diagonals & offDiagonals;
|
|
}
|
|
|
|
void SolverBodyMassAndInertia::serialize( DebugSerializer& s ) const
|
|
{
|
|
s & massInvVelStage;
|
|
SymmetricMatrix invInertia;
|
|
invInertia.diagonals = inertiaDiagonal;
|
|
invInertia.offDiagonals = inertiaOffDiagonal;
|
|
s & invInertia;
|
|
}
|
|
|
|
}
|