BulletSim: Add RawPosition and RawOrientation to BSPhysObject and rename MassRaw to RawMass. Fix BSShapeCollection to use Raw* for creating the body to eliminate exception from referencing the physical body before it has been created.

This commit is contained in:
Robert Adams
2012-11-01 10:53:55 -07:00
parent 39c02dcc8c
commit f53b4e7a21
5 changed files with 39 additions and 17 deletions

View File

@@ -811,7 +811,7 @@ public sealed class BSShapeCollection : IDisposable
if (prim.IsSolid)
{
bodyPtr = BulletSimAPI.CreateBodyFromShape2(sim.ptr, shape.ptr,
prim.LocalID, prim.ForcePosition, prim.ForceOrientation);
prim.LocalID, prim.RawPosition, prim.RawOrientation);
DetailLog("{0},BSShapeCollection.CreateBody,mesh,ptr={1}", prim.LocalID, bodyPtr.ToString("X"));
}
else