aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
authorSean Dague2008-05-06 22:17:00 +0000
committerSean Dague2008-05-06 22:17:00 +0000
commit0b09966c7ef63a6f01c799c13963c91b50140453 (patch)
tree06ced62c58d506e0d85f8d4b84d2878b2d714011 /OpenSim/Region/Environment/Scenes
parentRestored svn:keywords to prebuild.xml. (diff)
downloadopensim-SC_OLD-0b09966c7ef63a6f01c799c13963c91b50140453.zip
opensim-SC_OLD-0b09966c7ef63a6f01c799c13963c91b50140453.tar.gz
opensim-SC_OLD-0b09966c7ef63a6f01c799c13963c91b50140453.tar.bz2
opensim-SC_OLD-0b09966c7ef63a6f01c799c13963c91b50140453.tar.xz
send actual velocity and angular velocity in terse updates
instead of hardcoding to zero when the primitive is non physical. llTargetOmega should work now.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
index 9311904..3252b6c 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
@@ -2392,9 +2392,10 @@ namespace OpenSim.Region.Environment.Scenes
2392 LLVector3 lPos; 2392 LLVector3 lPos;
2393 lPos = OffsetPosition; 2393 lPos = OffsetPosition;
2394 LLQuaternion mRot = RotationOffset; 2394 LLQuaternion mRot = RotationOffset;
2395 // TODO: I have no idea why we are making this check. This should be sorted out
2395 if ((ObjectFlags & (uint) LLObject.ObjectFlags.Physics) == 0) 2396 if ((ObjectFlags & (uint) LLObject.ObjectFlags.Physics) == 0)
2396 { 2397 {
2397 remoteClient.SendPrimTerseUpdate(m_regionHandle, (ushort)(m_parentGroup.GetTimeDilation() * (float)ushort.MaxValue), LocalId, lPos, mRot, Shape.State, fromAssetID); 2398 remoteClient.SendPrimTerseUpdate(m_regionHandle, (ushort)(m_parentGroup.GetTimeDilation() * (float)ushort.MaxValue), LocalId, lPos, mRot, Velocity, RotationalVelocity, Shape.State, fromAssetID);
2398 } 2399 }
2399 else 2400 else
2400 { 2401 {
@@ -2409,13 +2410,13 @@ namespace OpenSim.Region.Environment.Scenes
2409 LLQuaternion mRot = RotationOffset; 2410 LLQuaternion mRot = RotationOffset;
2410 if (m_IsAttachment) 2411 if (m_IsAttachment)
2411 { 2412 {
2412 remoteClient.SendPrimTerseUpdate(m_regionHandle, (ushort)(m_parentGroup.GetTimeDilation() * (float)ushort.MaxValue), LocalId, lPos, mRot, (byte)((m_attachmentPoint % 16) * 16 + (m_attachmentPoint / 16)),fromAssetID); 2413 remoteClient.SendPrimTerseUpdate(m_regionHandle, (ushort)(m_parentGroup.GetTimeDilation() * (float)ushort.MaxValue), LocalId, lPos, mRot, Velocity, RotationalVelocity, (byte)((m_attachmentPoint % 16) * 16 + (m_attachmentPoint / 16)),fromAssetID);
2413 } 2414 }
2414 else 2415 else
2415 { 2416 {
2416 if ((ObjectFlags & (uint)LLObject.ObjectFlags.Physics) == 0) 2417 if ((ObjectFlags & (uint)LLObject.ObjectFlags.Physics) == 0)
2417 { 2418 {
2418 remoteClient.SendPrimTerseUpdate(m_regionHandle, (ushort)(m_parentGroup.GetTimeDilation() * (float)ushort.MaxValue), LocalId, lPos, mRot, Shape.State, fromAssetID); 2419 remoteClient.SendPrimTerseUpdate(m_regionHandle, (ushort)(m_parentGroup.GetTimeDilation() * (float)ushort.MaxValue), LocalId, lPos, mRot, Velocity, RotationalVelocity, Shape.State, fromAssetID);
2419 } 2420 }
2420 else 2421 else
2421 { 2422 {