123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- using System.Collections.Generic;
- using System.Reflection;
- using log4net;
- using Nini.Config;
- using OpenSim.Framework;
- using OpenMetaverse;
- namespace OpenSim.Region.PhysicsModules.SharedBase
- {
- class NullPhysicsScene : PhysicsScene
- {
- private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
- private static int m_workIndicator;
- public override PhysicsActor AddAvatar(
- string avName, Vector3 position, Vector3 velocity, Vector3 size, bool isFlying)
- {
- m_log.InfoFormat("[PHYSICS]: NullPhysicsScene : AddAvatar({0})", position);
- return PhysicsActor.Null;
- }
- public override void RemoveAvatar(PhysicsActor actor)
- {
- }
- public override void RemovePrim(PhysicsActor prim)
- {
- }
- public override void SetWaterLevel(float baseheight)
- {
- }
- public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position,
- Vector3 size, Quaternion rotation, bool isPhysical, uint localid)
- {
- m_log.InfoFormat("[PHYSICS]: NullPhysicsScene : AddPrim({0},{1})", position, size);
- return PhysicsActor.Null;
- }
- public override float Simulate(float timeStep)
- {
- m_workIndicator = (m_workIndicator + 1) % 10;
- return 0f;
- }
- public override void SetTerrain(float[] heightMap)
- {
- m_log.InfoFormat("[PHYSICS]: NullPhysicsScene : SetTerrain({0} items)", heightMap.Length);
- }
- public override void DeleteTerrain()
- {
- }
- public override void Dispose()
- {
- }
- public override Dictionary<uint,float> GetTopColliders()
- {
- Dictionary<uint, float> returncolliders = new Dictionary<uint, float>();
- return returncolliders;
- }
- }
- }
|