From 5be74427365c3b712099aba8f8345f5fd92ca2fc Mon Sep 17 00:00:00 2001 From: MW Date: Fri, 10 Oct 2008 16:01:59 +0000 Subject: added a list of SurfaceTouchEventArgs to the IClientAPI.OnGrabUpdate event, for the new surface touch parameters in 1.21 viewers. TODO: add the touch args to OnGrabObject and OnDeGrabObject. --- OpenSim/Framework/IClientAPI.cs | 2 +- OpenSim/Framework/SurfaceTouchEventArgs.cs | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 OpenSim/Framework/SurfaceTouchEventArgs.cs (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/IClientAPI.cs b/OpenSim/Framework/IClientAPI.cs index 5bf0d19..26ab586 100644 --- a/OpenSim/Framework/IClientAPI.cs +++ b/OpenSim/Framework/IClientAPI.cs @@ -144,7 +144,7 @@ namespace OpenSim.Framework public delegate void AvatarPickerRequest(IClientAPI remoteClient, UUID agentdata, UUID queryID, string UserQuery ); - public delegate void MoveObject(UUID objectID, Vector3 offset, Vector3 grapPos, IClientAPI remoteClient); + public delegate void MoveObject(UUID objectID, Vector3 offset, Vector3 grapPos, IClientAPI remoteClient, List surfaceArgs); public delegate void ParcelAccessListRequest( UUID agentID, UUID sessionID, uint flags, int sequenceID, int landLocalID, IClientAPI remote_client); diff --git a/OpenSim/Framework/SurfaceTouchEventArgs.cs b/OpenSim/Framework/SurfaceTouchEventArgs.cs new file mode 100644 index 0000000..f34d8ba --- /dev/null +++ b/OpenSim/Framework/SurfaceTouchEventArgs.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Text; +using OpenMetaverse; + +namespace OpenSim.Framework +{ + public class SurfaceTouchEventArgs + { + public Vector3 Binormal; + public int FaceIndex; + public Vector3 Normal; + public Vector3 Position; + public Vector3 STCoord; + public Vector3 UVCoord; + } +} -- cgit v1.1