remove debug statements. Pass terrain to physics engine
parent
7c6bca1668
commit
420aeb9b6a
|
@ -250,6 +250,14 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule
|
|||
s = ss;
|
||||
break;
|
||||
}
|
||||
{
|
||||
ScenePresence sp = ss.GetScenePresence(pa.LocalID);
|
||||
if (sp != null)
|
||||
{
|
||||
s = ss;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (s != null)
|
||||
{
|
||||
|
|
|
@ -282,6 +282,7 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule
|
|||
case RegionSyncMessage.MsgType.Terrain:
|
||||
{
|
||||
m_scene.Heightmap.LoadFromXmlString(Encoding.ASCII.GetString(msg.Data, 0, msg.Length));
|
||||
m_scene.PhysicsScene.SetTerrain(m_scene.Heightmap.GetFloatsSerialised());
|
||||
RegionSyncMessage.HandleSuccess(LogHeader, msg, "Synchronized terrain");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -273,8 +273,11 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule
|
|||
public void SendUpdate(PhysicsActor pa)
|
||||
{
|
||||
// m_log.DebugFormat("{0}: SendUpdate for {1}", LogHeader, pa.LocalID);
|
||||
if (pa.lastValues.Changed(pa))
|
||||
{
|
||||
this.m_sceneToPhysEngineConnector.SendPhysUpdateAttributes(pa);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
|
@ -207,9 +207,12 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
{
|
||||
if (PhysEngineToSceneConnectorModule.IsPhysEngineActorS)
|
||||
{
|
||||
m_log.DebugFormat("[ODE CHARACTER]: Sending terse update for {0}", LocalID);
|
||||
// m_log.DebugFormat("[ODE CHARACTER]: Sending terse update for {0}", LocalID);
|
||||
if (this.lastValues.Changed(this))
|
||||
{
|
||||
PhysEngineToSceneConnectorModule.RouteUpdate(this);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
base.RequestPhysicsterseUpdate();
|
||||
|
@ -1194,7 +1197,6 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
}
|
||||
if (!m_lastUpdateSent)
|
||||
{
|
||||
m_log.DebugFormat("[ODE CHARACTER] UpdatePositionAndVelocity");
|
||||
this.RequestPhysicsterseUpdate();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -88,19 +88,16 @@ public class PECharacter : PhysicsActor
|
|||
public override Vector3 Size {
|
||||
get { return _size; }
|
||||
set { _size = value;
|
||||
m_log.Debug("[RPE] PEChar set Size");
|
||||
Prop.Set(_localID, PropType.Size, _size);
|
||||
}
|
||||
}
|
||||
public override PrimitiveBaseShape Shape {
|
||||
set { _pbs = value;
|
||||
m_log.Debug("[RPE] PEChar set Shape");
|
||||
Prop.Set(_localID, PropType.Shape, _pbs);
|
||||
}
|
||||
}
|
||||
public override uint LocalID {
|
||||
set { _localID = value;
|
||||
m_log.Debug("[RPE] PEChar set LocalID");
|
||||
Prop.Set(_localID, PropType.LocalID, _localID);
|
||||
}
|
||||
get { return _localID; }
|
||||
|
@ -125,7 +122,6 @@ public class PECharacter : PhysicsActor
|
|||
public override Vector3 Position {
|
||||
get { return _position; }
|
||||
set { _position = value;
|
||||
// m_log.DebugFormat("[RPE] PEChar set Position: {0}", _position);
|
||||
Prop.Set(_localID, PropType.Position, _position);
|
||||
}
|
||||
}
|
||||
|
@ -135,7 +131,6 @@ public class PECharacter : PhysicsActor
|
|||
public override Vector3 Force {
|
||||
get { return _force; }
|
||||
set { _force = value;
|
||||
m_log.Debug("[RPE] PEChar set Force");
|
||||
Prop.Set(_localID, PropType.Force, _force);
|
||||
}
|
||||
}
|
||||
|
@ -157,7 +152,6 @@ public class PECharacter : PhysicsActor
|
|||
public override Vector3 Velocity {
|
||||
get { return _velocity; }
|
||||
set { _velocity = value;
|
||||
m_log.Debug("[RPE] PEChar set Velocity");
|
||||
Prop.Set(_localID, PropType.Velocity, _velocity);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -90,7 +90,7 @@ public sealed class PEPrim : PhysicsActor
|
|||
public override Vector3 Size {
|
||||
get { return _size; }
|
||||
set { _size = value;
|
||||
m_log.Debug("[RPE] PEPrim set Size");
|
||||
// m_log.Debug("[RPE] PEPrim set Size");
|
||||
Prop.Set(_localID, PropType.Size, _size);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue