mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 12:25:42 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user