From 067a9f3d5f79a7b3b1e5939179e2d755f4236710 Mon Sep 17 00:00:00 2001 From: Homer Horwitz Date: Wed, 31 Dec 2008 19:35:33 +0000 Subject: Added a missing setMass for initializing the mass of prims --- OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Physics') diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs index 8dc8f78..f012a2f 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs @@ -45,7 +45,7 @@ namespace OpenSim.Region.Physics.OdePlugin { private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); - public PhysicsVector _position; + private PhysicsVector _position; private PhysicsVector _velocity; private PhysicsVector _torque = new PhysicsVector(0,0,0); private PhysicsVector m_lastVelocity = new PhysicsVector(0.0f, 0.0f, 0.0f); @@ -962,6 +962,7 @@ namespace OpenSim.Region.Physics.OdePlugin if (Body == IntPtr.Zero) { Body = d.BodyCreate(_parent_scene.world); + setMass(); } if (Body != IntPtr.Zero) { -- cgit v1.1