diff options
author | dahlia | 2015-02-05 14:29:51 -0800 |
---|---|---|
committer | dahlia | 2015-02-05 14:29:51 -0800 |
commit | ee810a2cb526f49deefd307cbc0a84ecb52c9053 (patch) | |
tree | 4331e3d17431b5c47785f09d707b03932f99ce8d /OpenSim/Region/Framework/Scenes | |
parent | replace accidently deleted line from last commit (diff) | |
download | opensim-SC-ee810a2cb526f49deefd307cbc0a84ecb52c9053.zip opensim-SC-ee810a2cb526f49deefd307cbc0a84ecb52c9053.tar.gz opensim-SC-ee810a2cb526f49deefd307cbc0a84ecb52c9053.tar.bz2 opensim-SC-ee810a2cb526f49deefd307cbc0a84ecb52c9053.tar.xz |
Set angular velocity in physics actor in SceneObjectPart.AngularVelocity setter. Enables llSetAngularVelocity()
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 1ca250a..6f8d07c 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -957,7 +957,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
957 | } | 957 | } |
958 | return m_angularVelocity; | 958 | return m_angularVelocity; |
959 | } | 959 | } |
960 | set { m_angularVelocity = value; } | 960 | set |
961 | { | ||
962 | m_angularVelocity = value; | ||
963 | PhysicsActor actor = PhysActor; | ||
964 | if ((actor != null) && actor.IsPhysical) | ||
965 | actor.RotationalVelocity = m_angularVelocity; | ||
966 | } | ||
961 | } | 967 | } |
962 | 968 | ||
963 | /// <summary></summary> | 969 | /// <summary></summary> |