BulletSim: change PositionSanityCheck to apply a force to correct position corrections (below ground and floating).

This commit is contained in:
Robert Adams
2012-11-20 08:43:43 -08:00
parent 2f5fe4b88e
commit 4d29488216
2 changed files with 30 additions and 33 deletions

View File

@@ -940,7 +940,7 @@ public sealed class BSShapeCollection : IDisposable
else
{
bodyPtr = BulletSimAPI.CreateGhostFromShape2(sim.ptr, shape.ptr,
prim.LocalID, prim.ForcePosition, prim.ForceOrientation);
prim.LocalID, prim.RawPosition, prim.RawOrientation);
DetailLog("{0},BSShapeCollection.CreateBody,ghost,ptr={1}", prim.LocalID, bodyPtr.ToString("X"));
}
aBody = new BulletBody(prim.LocalID, bodyPtr);