From c3e1756a48049664a4381cb8b2497415719d8d5c Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sat, 4 Apr 2009 06:28:55 +0000 Subject: * Removes IObject.Position, IObject.Rotation from IObject * Adds IObject.WorldPosition and IObject.OffsetPosition - this is equivilent to AbsolutePosition and OffsetPosition in SOP respectively. * Adds IObject.WorldRotation and IObject.OffsetRotation - as above. --- .../OptionalModules/Scripting/Minimodule/SOPObject.cs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (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 12d996a..f53a7df 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs @@ -103,13 +103,19 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule set { GetSOP().Scale = value; } } - public Quaternion Rotation + public Quaternion WorldRotation { get { throw new System.NotImplementedException(); } set { throw new System.NotImplementedException(); } } - public Vector3 Position + public Quaternion OffsetRotation + { + get { throw new System.NotImplementedException(); } + set { throw new System.NotImplementedException(); } + } + + public Vector3 WorldPosition { get { return GetSOP().AbsolutePosition; } set @@ -119,6 +125,12 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule } } + public Vector3 OffsetPosition + { + get { return GetSOP().OffsetPosition; } + set { GetSOP().OffsetPosition = value; } + } + public Vector3 SitTarget { get { throw new System.NotImplementedException(); } -- cgit v1.1