From 0cbdfcea872d6ec50d8c1580b7667acdb9c5f2d9 Mon Sep 17 00:00:00 2001 From: Homer Horwitz Date: Fri, 19 Dec 2008 20:33:51 +0000 Subject: Stop prims that get non-physical. Fixes Mantis#2859. --- OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 5fab3ba..8905c18 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -1450,6 +1450,13 @@ if (m_shape != null) { } } } + + if (!UsePhysics) + { + // reset velocity to 0. Without that, the client thinks the prim still has velocity and + // continues to interpolate its position along the old velocity-vector. + Velocity = new Vector3(0, 0, 0); + } } m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(PhysActor); } -- cgit v1.1