diff options
author | UbitUmarov | 2012-02-18 17:42:14 +0000 |
---|---|---|
committer | UbitUmarov | 2012-02-18 17:42:14 +0000 |
commit | 3aee642190add7045f78e522ae7b2221b3566f1e (patch) | |
tree | a390b28dce297bde43aa216332d217b2b28ea03a /OpenSim/Region/Physics/Manager | |
parent | vehicle parameters do cross (i hope) on regions in same instance ( others ne... (diff) | |
download | opensim-SC-3aee642190add7045f78e522ae7b2221b3566f1e.zip opensim-SC-3aee642190add7045f78e522ae7b2221b3566f1e.tar.gz opensim-SC-3aee642190add7045f78e522ae7b2221b3566f1e.tar.bz2 opensim-SC-3aee642190add7045f78e522ae7b2221b3566f1e.tar.xz |
changed how vehicle data is stored and passed to physics. use unsafe in serializer, tried to control m_dupeInProgress
Diffstat (limited to 'OpenSim/Region/Physics/Manager')
-rw-r--r-- | OpenSim/Region/Physics/Manager/PhysicsActor.cs | 5 | ||||
-rw-r--r-- | OpenSim/Region/Physics/Manager/VehicleConstants.cs | 45 |
2 files changed, 47 insertions, 3 deletions
diff --git a/OpenSim/Region/Physics/Manager/PhysicsActor.cs b/OpenSim/Region/Physics/Manager/PhysicsActor.cs index eb0228a..f525e9e 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsActor.cs +++ b/OpenSim/Region/Physics/Manager/PhysicsActor.cs | |||
@@ -146,6 +146,8 @@ namespace OpenSim.Region.Physics.Manager | |||
146 | /// </summary> | 146 | /// </summary> |
147 | public event CollisionUpdate OnCollisionUpdate; | 147 | public event CollisionUpdate OnCollisionUpdate; |
148 | 148 | ||
149 | public virtual void SetVehicle(object vdata) { } | ||
150 | |||
149 | public event OutOfBounds OnOutOfBounds; | 151 | public event OutOfBounds OnOutOfBounds; |
150 | #pragma warning restore 67 | 152 | #pragma warning restore 67 |
151 | 153 | ||
@@ -153,8 +155,7 @@ namespace OpenSim.Region.Physics.Manager | |||
153 | { | 155 | { |
154 | get { return new NullPhysicsActor(); } | 156 | get { return new NullPhysicsActor(); } |
155 | } | 157 | } |
156 | 158 | ||
157 | |||
158 | public virtual bool Building { get; set; } | 159 | public virtual bool Building { get; set; } |
159 | 160 | ||
160 | public virtual ContactData ContactData | 161 | public virtual ContactData ContactData |
diff --git a/OpenSim/Region/Physics/Manager/VehicleConstants.cs b/OpenSim/Region/Physics/Manager/VehicleConstants.cs index f0775c1..8e24b4c 100644 --- a/OpenSim/Region/Physics/Manager/VehicleConstants.cs +++ b/OpenSim/Region/Physics/Manager/VehicleConstants.cs | |||
@@ -26,6 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using OpenMetaverse; | ||
29 | 30 | ||
30 | namespace OpenSim.Region.Physics.Manager | 31 | namespace OpenSim.Region.Physics.Manager |
31 | { | 32 | { |
@@ -117,5 +118,47 @@ namespace OpenSim.Region.Physics.Manager | |||
117 | NO_DEFLECTION = 16392, | 118 | NO_DEFLECTION = 16392, |
118 | LOCK_ROTATION = 32784 | 119 | LOCK_ROTATION = 32784 |
119 | } | 120 | } |
120 | 121 | ||
122 | public struct VehicleData | ||
123 | { | ||
124 | public Vehicle m_type; | ||
125 | public VehicleFlag m_flags; | ||
126 | |||
127 | // Linear properties | ||
128 | public Vector3 m_linearMotorDirection; | ||
129 | public Vector3 m_linearFrictionTimescale; | ||
130 | public float m_linearMotorDecayTimescale; | ||
131 | public float m_linearMotorTimescale; | ||
132 | public Vector3 m_linearMotorOffset; | ||
133 | |||
134 | //Angular properties | ||
135 | public Vector3 m_angularMotorDirection; | ||
136 | public float m_angularMotorTimescale; | ||
137 | public float m_angularMotorDecayTimescale; | ||
138 | public Vector3 m_angularFrictionTimescale; | ||
139 | |||
140 | //Deflection properties | ||
141 | public float m_angularDeflectionEfficiency; | ||
142 | public float m_angularDeflectionTimescale; | ||
143 | public float m_linearDeflectionEfficiency; | ||
144 | public float m_linearDeflectionTimescale; | ||
145 | |||
146 | //Banking properties | ||
147 | public float m_bankingEfficiency; | ||
148 | public float m_bankingMix; | ||
149 | public float m_bankingTimescale; | ||
150 | |||
151 | //Hover and Buoyancy properties | ||
152 | public float m_VhoverHeight; | ||
153 | public float m_VhoverEfficiency; | ||
154 | public float m_VhoverTimescale; | ||
155 | public float m_VehicleBuoyancy; | ||
156 | |||
157 | //Attractor properties | ||
158 | public float m_verticalAttractionEfficiency; | ||
159 | public float m_verticalAttractionTimescale; | ||
160 | |||
161 | // Axis | ||
162 | public Quaternion m_referenceFrame; | ||
163 | } | ||
121 | } | 164 | } |