From 04e7fcd0e93300ec25758727ab5cfbb80942e97f Mon Sep 17 00:00:00 2001 From: dan miller Date: Tue, 18 Sep 2007 02:38:10 +0000 Subject: RemoveAvatar called from scene.cs; implemented in ODE. Still issues with multi-region; see bug 410 --- OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Physics/OdePlugin') diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs index a6834d4..8b49f70 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs @@ -152,6 +152,9 @@ namespace OpenSim.Region.Physics.OdePlugin public override void RemoveAvatar(PhysicsActor actor) { + OdeCharacter och = (OdeCharacter)actor; + d.BodyDestroy(och.BoundingCapsule); + _characters.Remove(och); } public override void RemovePrim(PhysicsActor prim) @@ -278,7 +281,7 @@ namespace OpenSim.Region.Physics.OdePlugin private PhysicsVector _acceleration; private bool flying = false; //private float gravityAccel; - private IntPtr BoundingCapsule; + public IntPtr BoundingCapsule; private OdeScene _parent_scene; public IntPtr capsule_geom; public d.Mass capsule_mass; -- cgit v1.1