修改水
This commit is contained in:
@@ -76,8 +76,8 @@ namespace Obi
|
||||
{
|
||||
particleIndices[m_ActiveConstraintCount + i] = actor.solverIndices[batch.particleIndices[i]];
|
||||
aerodynamicCoeffs[(m_ActiveConstraintCount + i) * 3] = batch.aerodynamicCoeffs[i*3];
|
||||
aerodynamicCoeffs[(m_ActiveConstraintCount + i) * 3 + 1] = user.GetDrag(batch, i);
|
||||
aerodynamicCoeffs[(m_ActiveConstraintCount + i) * 3 + 2] = user.GetLift(batch, i);
|
||||
aerodynamicCoeffs[(m_ActiveConstraintCount + i) * 3 + 1] = user.drag;
|
||||
aerodynamicCoeffs[(m_ActiveConstraintCount + i) * 3 + 2] = user.lift;
|
||||
}
|
||||
|
||||
base.Merge(actor, other);
|
||||
@@ -96,10 +96,6 @@ namespace Obi
|
||||
|
||||
public override void RemoveFromSolver(ObiSolver solver)
|
||||
{
|
||||
base.RemoveFromSolver(solver);
|
||||
|
||||
aerodynamicCoeffs.Dispose();
|
||||
|
||||
//Remove batch:
|
||||
solver.implementation.DestroyConstraintsBatch(m_BatchImpl as IConstraintsBatchImpl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user