From 746729b6cefce7093d346e21909b35440dd88569 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sat, 4 Apr 2009 23:23:24 +0000 Subject: * Implements IObjectPhysics on SOPObject partially. * Eg, IObject.Physics.* is now valid syntax and compiles (but will throw NotSupported at runtime) --- .../Scripting/Minimodule/SOPObject.cs | 106 ++++++++++++++++++++- 1 file changed, 105 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs') diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs index c0a838b..2e93673 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs @@ -30,10 +30,11 @@ using System.Collections.Generic; using OpenMetaverse; using OpenSim.Framework; using OpenSim.Region.Framework.Scenes; +using OpenSim.Region.OptionalModules.Scripting.Minimodule.Object; namespace OpenSim.Region.OptionalModules.Scripting.Minimodule { - class SOPObject : MarshalByRefObject, IObject + class SOPObject : MarshalByRefObject, IObject, IObjectPhysics { private readonly Scene m_rootScene; private readonly uint m_localID; @@ -254,6 +255,11 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule set { throw new System.NotImplementedException(); } } + public IObjectPhysics Physics + { + get { return this; } + } + #region Public Functions public void Say(string msg) @@ -386,5 +392,103 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule #endregion + #region IObjectPhysics + + public bool Enabled + { + get { throw new System.NotImplementedException(); } + set { throw new System.NotImplementedException(); } + } + + public bool Phantom + { + get { throw new System.NotImplementedException(); } + set { throw new System.NotImplementedException(); } + } + + public bool PhantomCollisions + { + get { throw new System.NotImplementedException(); } + set { throw new System.NotImplementedException(); } + } + + public double Density + { + get { throw new System.NotImplementedException(); } + set { throw new System.NotImplementedException(); } + } + + public double Mass + { + get { throw new System.NotImplementedException(); } + set { throw new System.NotImplementedException(); } + } + + public double Buoyancy + { + get { throw new System.NotImplementedException(); } + set { throw new System.NotImplementedException(); } + } + + public Vector3 GeometricCenter + { + get { throw new System.NotImplementedException(); } + } + + public Vector3 CenterOfMass + { + get { throw new System.NotImplementedException(); } + } + + public Vector3 RotationalVelocity + { + get { throw new System.NotImplementedException(); } + set { throw new System.NotImplementedException(); } + } + + public Vector3 Velocity + { + get { throw new System.NotImplementedException(); } + set { throw new System.NotImplementedException(); } + } + + public Vector3 Torque + { + get { throw new System.NotImplementedException(); } + set { throw new System.NotImplementedException(); } + } + + public Vector3 Acceleration + { + get { throw new System.NotImplementedException(); } + } + + public Vector3 Force + { + get { throw new System.NotImplementedException(); } + set { throw new System.NotImplementedException(); } + } + + public bool FloatOnWater + { + set { throw new System.NotImplementedException(); } + } + + public void AddForce(Vector3 force, bool pushforce) + { + throw new System.NotImplementedException(); + } + + public void AddAngularForce(Vector3 force, bool pushforce) + { + throw new System.NotImplementedException(); + } + + public void SetMomentum(Vector3 momentum) + { + throw new System.NotImplementedException(); + } + + #endregion } } -- cgit v1.1