BulletSim: zero vehicle motion when changing vehicle type.

Rebuild compound linkset of any child in the linkset changes shape.
Comments and better detailed logging messages.
This commit is contained in:
Robert Adams
2013-05-03 14:23:53 -07:00
parent 4042c82a72
commit 5d25bb3084
6 changed files with 18 additions and 26 deletions

View File

@@ -559,9 +559,6 @@ namespace OpenSim.Region.Physics.BulletSPlugin
break;
}
// Update any physical parameters based on this type.
Refresh();
m_linearMotor = new BSVMotor("LinearMotor", m_linearMotorTimescale,
m_linearMotorDecayTimescale, m_linearFrictionTimescale,
1f);
@@ -589,6 +586,9 @@ namespace OpenSim.Region.Physics.BulletSPlugin
{
RegisterForSceneEvents();
}
// Update any physical parameters based on this type.
Refresh();
}
#endregion // Vehicle parameter setting