aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
diff options
context:
space:
mode:
authorUbitUmarov2012-02-18 14:08:42 +0000
committerUbitUmarov2012-02-18 14:08:42 +0000
commit5351ff925c20c0fd189ee7de85c31521aca8cdf3 (patch)
treea30ffaae2776843bc917fb08b984f9c811650a17 /OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
parentAdded simple binary serializer/deserializer to chODE. 100% untested and most ... (diff)
downloadopensim-SC_OLD-5351ff925c20c0fd189ee7de85c31521aca8cdf3.zip
opensim-SC_OLD-5351ff925c20c0fd189ee7de85c31521aca8cdf3.tar.gz
opensim-SC_OLD-5351ff925c20c0fd189ee7de85c31521aca8cdf3.tar.bz2
opensim-SC_OLD-5351ff925c20c0fd189ee7de85c31521aca8cdf3.tar.xz
let SOG know about vehicles. Still needs serialization and applyphyscis on deserialize, etc
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs42
1 files changed, 19 insertions, 23 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index 19dedde..6438694 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -3170,34 +3170,37 @@ namespace OpenSim.Region.Framework.Scenes
3170 3170
3171 public void SetVehicleType(int type) 3171 public void SetVehicleType(int type)
3172 { 3172 {
3173 if (PhysActor != null) 3173 if (ParentGroup.IsDeleted)
3174 { 3174 return;
3175 PhysActor.VehicleType = type; 3175 ParentGroup.VehicleType = type;
3176 } 3176 }
3177
3178 public void SetVehicleFlags(int param, bool remove)
3179 {
3180 if (ParentGroup.IsDeleted)
3181 return;
3182 ParentGroup.SetVehicleFlags(param, remove);
3177 } 3183 }
3178 3184
3179 public void SetVehicleFloatParam(int param, float value) 3185 public void SetVehicleFloatParam(int param, float value)
3180 { 3186 {
3181 if (PhysActor != null) 3187 if (ParentGroup.IsDeleted)
3182 { 3188 return;
3183 PhysActor.VehicleFloatParam(param, value); 3189 ParentGroup.SetVehicleFloatParam(param, value);
3184 }
3185 } 3190 }
3186 3191
3187 public void SetVehicleVectorParam(int param, Vector3 value) 3192 public void SetVehicleVectorParam(int param, Vector3 value)
3188 { 3193 {
3189 if (PhysActor != null) 3194 if (ParentGroup.IsDeleted)
3190 { 3195 return;
3191 PhysActor.VehicleVectorParam(param, value); 3196 ParentGroup.SetVehicleVectorParam(param, value);
3192 }
3193 } 3197 }
3194 3198
3195 public void SetVehicleRotationParam(int param, Quaternion rotation) 3199 public void SetVehicleRotationParam(int param, Quaternion rotation)
3196 { 3200 {
3197 if (PhysActor != null) 3201 if (ParentGroup.IsDeleted)
3198 { 3202 return;
3199 PhysActor.VehicleRotationParam(param, rotation); 3203 ParentGroup.SetVehicleRotationParam(param, rotation);
3200 }
3201 } 3204 }
3202 3205
3203 /// <summary> 3206 /// <summary>
@@ -3381,13 +3384,6 @@ namespace OpenSim.Region.Framework.Scenes
3381 hasProfileCut = hasDimple; // is it the same thing? 3384 hasProfileCut = hasDimple; // is it the same thing?
3382 } 3385 }
3383 3386
3384 public void SetVehicleFlags(int param, bool remove)
3385 {
3386 if (PhysActor != null)
3387 {
3388 PhysActor.VehicleFlags(param, remove);
3389 }
3390 }
3391 3387
3392 public void SetGroup(UUID groupID, IClientAPI client) 3388 public void SetGroup(UUID groupID, IClientAPI client)
3393 { 3389 {