diff options
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index e7f9f31..31ea502 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -818,7 +818,16 @@ namespace OpenSim.Region.Framework.Scenes | |||
818 | /// <summary></summary> | 818 | /// <summary></summary> |
819 | public Vector3 Acceleration | 819 | public Vector3 Acceleration |
820 | { | 820 | { |
821 | get { return m_acceleration; } | 821 | get |
822 | { | ||
823 | PhysicsActor actor = PhysActor; | ||
824 | if (actor != null) | ||
825 | { | ||
826 | m_acceleration = actor.Acceleration; | ||
827 | } | ||
828 | return m_acceleration; | ||
829 | } | ||
830 | |||
822 | set { m_acceleration = value; } | 831 | set { m_acceleration = value; } |
823 | } | 832 | } |
824 | 833 | ||
@@ -3198,22 +3207,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
3198 | PhysActor.VehicleRotationParam(param, rotation); | 3207 | PhysActor.VehicleRotationParam(param, rotation); |
3199 | } | 3208 | } |
3200 | } | 3209 | } |
3201 | |||
3202 | public void SetVehicleFlags(int flags) | ||
3203 | { | ||
3204 | if (PhysActor != null) | ||
3205 | { | ||
3206 | PhysActor.VehicleFlagsSet(flags); | ||
3207 | } | ||
3208 | } | ||
3209 | |||
3210 | public void RemoveVehicleFlags(int flags) | ||
3211 | { | ||
3212 | if (PhysActor != null) | ||
3213 | { | ||
3214 | PhysActor.VehicleFlagsRemove(flags); | ||
3215 | } | ||
3216 | } | ||
3217 | 3210 | ||
3218 | /// <summary> | 3211 | /// <summary> |
3219 | /// Set the color of prim faces | 3212 | /// Set the color of prim faces |