From 8e6c20b27fdb95b9008614eb36678508407a4d19 Mon Sep 17 00:00:00 2001 From: nlin Date: Fri, 10 Apr 2009 06:39:52 +0000 Subject: Handle ObjectSpin* packets to spin physical prims on Ctrl+Shift+Drag Addresses Mantis #3381 The current implementation works as expected if the object has no rotation or only rotation around the Z axis; you can spin the object left or right (around the world Z axis). It works a little unexpectedly if the object has a non-Z-axis rotation; in this case the body is spun about its local Z axis, not the world Z-axis. (But SL also behaves oddly with a spin on an arbitrarily rotated object.) --- OpenSim/Framework/IClientAPI.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/IClientAPI.cs b/OpenSim/Framework/IClientAPI.cs index 1fa5ae2..e0983e8 100644 --- a/OpenSim/Framework/IClientAPI.cs +++ b/OpenSim/Framework/IClientAPI.cs @@ -160,7 +160,7 @@ namespace OpenSim.Framework ); public delegate void SpinStart(UUID objectID, IClientAPI remoteClient); - public delegate void SpinUpdate(UUID objectID, Quaternion rotation, IClientAPI remoteClient); + public delegate void SpinObject(UUID objectID, Quaternion rotation, IClientAPI remoteClient); public delegate void SpinStop(UUID objectID, IClientAPI remoteClient); public delegate void ParcelAccessListRequest( @@ -607,6 +607,9 @@ namespace OpenSim.Framework event GrabObject OnGrabObject; event ObjectSelect OnDeGrabObject; event MoveObject OnGrabUpdate; + event SpinStart OnSpinStart; + event SpinObject OnSpinUpdate; + event SpinStop OnSpinStop; event UpdateShape OnUpdatePrimShape; event ObjectExtraParams OnUpdateExtraParams; -- cgit v1.1