mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
Code cleanup related to ScenePresence.PhysicsActor and OdeScene/OdeCharacter
Stop hiding RemoveAvatar failure, add log messages when characters are removed through defects or re-added unexpectedly. Add commented out log lines for future use. Use automatic property for PhysicsActor for better code readability and simplicity
This commit is contained in:
@@ -137,7 +137,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
internal IntPtr Body = IntPtr.Zero;
|
||||
private OdeScene _parent_scene;
|
||||
internal IntPtr Shell = IntPtr.Zero;
|
||||
internal IntPtr Amotor = IntPtr.Zero;
|
||||
private IntPtr Amotor = IntPtr.Zero;
|
||||
private d.Mass ShellMass;
|
||||
|
||||
private int m_eventsubscription = 0;
|
||||
@@ -549,8 +549,8 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
{
|
||||
get
|
||||
{
|
||||
float AVvolume = (float) (Math.PI*Math.Pow(CAPSULE_RADIUS, 2)*CAPSULE_LENGTH);
|
||||
return m_density*AVvolume;
|
||||
float AVvolume = (float)(Math.PI * Math.Pow(CAPSULE_RADIUS, 2) * CAPSULE_LENGTH);
|
||||
return m_density * AVvolume;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user