mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
#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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user