Fix llSetPos to handle child prims correctly. This will fix linked

sliding doors
This commit is contained in:
Melanie Thielker
2008-10-11 23:47:35 +00:00
parent b48885ece4
commit 6f2d077356
2 changed files with 19 additions and 1 deletions

View File

@@ -550,6 +550,17 @@ namespace OpenSim.Region.Environment.Scenes
// Ignore, and skip over.
//}
//m_log.Info("[PART]: OFFSET:" + m_offsetPosition.ToString());
if (_parentID != 0)
{
Vector3 resultingposition = GetWorldPosition();
PhysActor.Position = new PhysicsVector(resultingposition.X, resultingposition.Y, resultingposition.Z);
Quaternion resultingrot = GetWorldRotation();
PhysActor.Orientation = resultingrot;
// Tell the physics engines that this prim changed.
m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(PhysActor);
}
}
}