diff options
Diffstat (limited to 'OpenSim/Region/PhysicsModules/SharedBase/VehicleConstants.cs')
-rw-r--r-- | OpenSim/Region/PhysicsModules/SharedBase/VehicleConstants.cs | 47 |
1 files changed, 45 insertions, 2 deletions
diff --git a/OpenSim/Region/PhysicsModules/SharedBase/VehicleConstants.cs b/OpenSim/Region/PhysicsModules/SharedBase/VehicleConstants.cs index 63a8cb8..0b4c8c6 100644 --- a/OpenSim/Region/PhysicsModules/SharedBase/VehicleConstants.cs +++ b/OpenSim/Region/PhysicsModules/SharedBase/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.PhysicsModules.SharedBase | 31 | namespace OpenSim.Region.PhysicsModules.SharedBase |
31 | { | 32 | { |
@@ -37,7 +38,7 @@ namespace OpenSim.Region.PhysicsModules.SharedBase | |||
37 | TYPE_NONE = 0, | 38 | TYPE_NONE = 0, |
38 | 39 | ||
39 | /// <summary> | 40 | /// <summary> |
40 | /// No Angular motor, High Left right friction, No Hover, Linear Deflection 1, no angular deflection | 41 | /// No Angular motor, High Left right friction, No Hover, Linear Deflection 1, no angular deflection |
41 | /// no vertical attractor, No banking, Identity rotation frame | 42 | /// no vertical attractor, No banking, Identity rotation frame |
42 | /// </summary> | 43 | /// </summary> |
43 | TYPE_SLED = 1, | 44 | TYPE_SLED = 1, |
@@ -117,5 +118,47 @@ namespace OpenSim.Region.PhysicsModules.SharedBase | |||
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 | } |