mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 03:06:05 +08:00
Added a missing setMass for initializing the mass of prims
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user