Move stuff around

This commit is contained in:
Irlan
2019-06-14 11:47:30 -03:00
parent 922a5a0a74
commit 24a86505ee
2 changed files with 84 additions and 94 deletions

View File

@ -81,17 +81,9 @@ public:
void Solve(float32 dt, const b3Vec3& gravity, u32 velocityIterations, u32 positionIterations);
private:
// Apply forces.
void ApplyForces();
// Apply constraints.
void ApplyConstraints();
// Solve Ax = b.
void SolveMPCG(b3DenseVec3& x,
const b3SparseSymMat33View& A, const b3DenseVec3& b,
const b3DiagMat33& S, const b3DenseVec3& z, const b3DenseVec3& y, u32 maxIterations = 30) const;
b3StackAllocator* m_allocator;
u32 m_particleCapacity;