diff options
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.)
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 2a5a563..1a5dd6d 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -176,6 +176,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
176 | public bool VolumeDetectActive = false; // XmlIgnore set to avoid problems with persistance until I come to care for this | 176 | public bool VolumeDetectActive = false; // XmlIgnore set to avoid problems with persistance until I come to care for this |
177 | // Certainly this must be a persistant setting finally | 177 | // Certainly this must be a persistant setting finally |
178 | 178 | ||
179 | [XmlIgnore] | ||
180 | public bool IsWaitingForFirstSpinUpdatePacket = false; | ||
181 | [XmlIgnore] | ||
182 | public Quaternion SpinOldOrientation = new Quaternion(); | ||
183 | |||
179 | /// <summary> | 184 | /// <summary> |
180 | /// This part's inventory | 185 | /// This part's inventory |
181 | /// </summary> | 186 | /// </summary> |