minor: method doc to explain a lock of OdeLock

0.7.2-post-fixes
Justin Clark-Casey (justincc) 2011-10-18 20:56:11 +01:00
parent 7c409eff53
commit 5980d57b7a
2 changed files with 3 additions and 1 deletions

View File

@ -2378,6 +2378,8 @@ Console.WriteLine(" JointCreateFixed");
public override void SetVolumeDetect(int param)
{
// We have to lock the scene here so that an entire simulate loop either uses volume detect for all
// possible collisions with this prim or for none of them.
lock (_parent_scene.OdeLock)
{
m_isVolumeDetect = (param != 0);

View File

@ -3668,8 +3668,8 @@ Console.WriteLine("AddPhysicsActorTaint to " + taintedprim.Name);
{
d.GeomSetCategoryBits(WaterGeom, (int)(CollisionCategories.Water));
d.GeomSetCollideBits(WaterGeom, (int)(CollisionCategories.Space));
}
geom_name_map[WaterGeom] = "Water";
d.Matrix3 R = new d.Matrix3();