aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/Manager/PhysicsActor.cs
diff options
context:
space:
mode:
authorKittoFlora2009-10-27 22:42:55 +0100
committerKittoFlora2009-10-27 22:42:55 +0100
commit1113b3b6ebba3e358326a7be90b338d8c95af688 (patch)
treed923340600e5a2699ceaceeb52fd6c45994f334a /OpenSim/Region/Physics/Manager/PhysicsActor.cs
parentllRotLookAt Pt 2 (diff)
parentMerge branch 'master' into vehicles (diff)
downloadopensim-SC-1113b3b6ebba3e358326a7be90b338d8c95af688.zip
opensim-SC-1113b3b6ebba3e358326a7be90b338d8c95af688.tar.gz
opensim-SC-1113b3b6ebba3e358326a7be90b338d8c95af688.tar.bz2
opensim-SC-1113b3b6ebba3e358326a7be90b338d8c95af688.tar.xz
Merge branch 'vehicles' into tests
Conflicts: OpenSim/Region/Physics/Manager/PhysicsActor.cs OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
Diffstat (limited to 'OpenSim/Region/Physics/Manager/PhysicsActor.cs')
-rw-r--r--OpenSim/Region/Physics/Manager/PhysicsActor.cs80
1 files changed, 40 insertions, 40 deletions
diff --git a/OpenSim/Region/Physics/Manager/PhysicsActor.cs b/OpenSim/Region/Physics/Manager/PhysicsActor.cs
index 566746a..ea4db70 100644
--- a/OpenSim/Region/Physics/Manager/PhysicsActor.cs
+++ b/OpenSim/Region/Physics/Manager/PhysicsActor.cs
@@ -32,8 +32,8 @@ using OpenMetaverse;
32 32
33namespace OpenSim.Region.Physics.Manager 33namespace OpenSim.Region.Physics.Manager
34{ 34{
35 public delegate void PositionUpdate(PhysicsVector position); 35 public delegate void PositionUpdate(Vector3 position);
36 public delegate void VelocityUpdate(PhysicsVector velocity); 36 public delegate void VelocityUpdate(Vector3 velocity);
37 public delegate void OrientationUpdate(Quaternion orientation); 37 public delegate void OrientationUpdate(Quaternion orientation);
38 38
39 public enum ActorTypes : int 39 public enum ActorTypes : int
@@ -106,7 +106,7 @@ namespace OpenSim.Region.Physics.Manager
106 { 106 {
107 public delegate void RequestTerseUpdate(); 107 public delegate void RequestTerseUpdate();
108 public delegate void CollisionUpdate(EventArgs e); 108 public delegate void CollisionUpdate(EventArgs e);
109 public delegate void OutOfBounds(PhysicsVector pos); 109 public delegate void OutOfBounds(Vector3 pos);
110 110
111// disable warning: public events 111// disable warning: public events
112#pragma warning disable 67 112#pragma warning disable 67
@@ -125,7 +125,7 @@ namespace OpenSim.Region.Physics.Manager
125 125
126 public abstract bool Stopped { get; } 126 public abstract bool Stopped { get; }
127 127
128 public abstract PhysicsVector Size { get; set; } 128 public abstract Vector3 Size { get; set; }
129 129
130 public abstract PrimitiveBaseShape Shape { set; } 130 public abstract PrimitiveBaseShape Shape { set; }
131 131
@@ -144,7 +144,7 @@ namespace OpenSim.Region.Physics.Manager
144 144
145 public abstract void delink(); 145 public abstract void delink();
146 146
147 public abstract void LockAngularMotion(PhysicsVector axis); 147 public abstract void LockAngularMotion(Vector3 axis);
148 148
149 public virtual void RequestPhysicsterseUpdate() 149 public virtual void RequestPhysicsterseUpdate()
150 { 150 {
@@ -159,7 +159,7 @@ namespace OpenSim.Region.Physics.Manager
159 } 159 }
160 } 160 }
161 161
162 public virtual void RaiseOutOfBounds(PhysicsVector pos) 162 public virtual void RaiseOutOfBounds(Vector3 pos)
163 { 163 {
164 // Make a temporary copy of the event to avoid possibility of 164 // Make a temporary copy of the event to avoid possibility of
165 // a race condition if the last subscriber unsubscribes 165 // a race condition if the last subscriber unsubscribes
@@ -187,23 +187,23 @@ namespace OpenSim.Region.Physics.Manager
187 187
188 } 188 }
189 189
190 public abstract PhysicsVector Position { get; set; } 190 public abstract Vector3 Position { get; set; }
191 public abstract float Mass { get; } 191 public abstract float Mass { get; }
192 public abstract PhysicsVector Force { get; set; } 192 public abstract Vector3 Force { get; set; }
193 193
194 public abstract int VehicleType { get; set; } 194 public abstract int VehicleType { get; set; }
195 public abstract void VehicleFloatParam(int param, float value); 195 public abstract void VehicleFloatParam(int param, float value);
196 public abstract void VehicleVectorParam(int param, PhysicsVector value); 196 public abstract void VehicleVectorParam(int param, Vector3 value);
197 public abstract void VehicleRotationParam(int param, Quaternion rotation); 197 public abstract void VehicleRotationParam(int param, Quaternion rotation);
198 198
199 public abstract void SetVolumeDetect(int param); // Allows the detection of collisions with inherently non-physical prims. see llVolumeDetect for more 199 public abstract void SetVolumeDetect(int param); // Allows the detection of collisions with inherently non-physical prims. see llVolumeDetect for more
200 200
201 public abstract PhysicsVector GeometricCenter { get; } 201 public abstract Vector3 GeometricCenter { get; }
202 public abstract PhysicsVector CenterOfMass { get; } 202 public abstract Vector3 CenterOfMass { get; }
203 public abstract PhysicsVector Velocity { get; set; } 203 public abstract Vector3 Velocity { get; set; }
204 public abstract PhysicsVector Torque { get; set; } 204 public abstract Vector3 Torque { get; set; }
205 public abstract float CollisionScore { get; set;} 205 public abstract float CollisionScore { get; set;}
206 public abstract PhysicsVector Acceleration { get; } 206 public abstract Vector3 Acceleration { get; }
207 public abstract Quaternion Orientation { get; set; } 207 public abstract Quaternion Orientation { get; set; }
208 public abstract int PhysicsActorType { get; set; } 208 public abstract int PhysicsActorType { get; set; }
209 public abstract bool IsPhysical { get; set; } 209 public abstract bool IsPhysical { get; set; }
@@ -214,12 +214,12 @@ namespace OpenSim.Region.Physics.Manager
214 public abstract bool CollidingGround { get; set; } 214 public abstract bool CollidingGround { get; set; }
215 public abstract bool CollidingObj { get; set; } 215 public abstract bool CollidingObj { get; set; }
216 public abstract bool FloatOnWater { set; } 216 public abstract bool FloatOnWater { set; }
217 public abstract PhysicsVector RotationalVelocity { get; set; } 217 public abstract Vector3 RotationalVelocity { get; set; }
218 public abstract bool Kinematic { get; set; } 218 public abstract bool Kinematic { get; set; }
219 public abstract float Buoyancy { get; set; } 219 public abstract float Buoyancy { get; set; }
220 220
221 // Used for MoveTo 221 // Used for MoveTo
222 public abstract PhysicsVector PIDTarget { set;} 222 public abstract Vector3 PIDTarget { set; }
223 public abstract bool PIDActive { set;} 223 public abstract bool PIDActive { set;}
224 public abstract float PIDTau { set; } 224 public abstract float PIDTau { set; }
225 225
@@ -251,9 +251,9 @@ namespace OpenSim.Region.Physics.Manager
251 get{ return false; } 251 get{ return false; }
252 } 252 }
253 253
254 public override PhysicsVector Position 254 public override Vector3 Position
255 { 255 {
256 get { return PhysicsVector.Zero; } 256 get { return Vector3.Zero; }
257 set { return; } 257 set { return; }
258 } 258 }
259 259
@@ -301,9 +301,9 @@ namespace OpenSim.Region.Physics.Manager
301 set { return; } 301 set { return; }
302 } 302 }
303 303
304 public override PhysicsVector Size 304 public override Vector3 Size
305 { 305 {
306 get { return PhysicsVector.Zero; } 306 get { return Vector3.Zero; }
307 set { return; } 307 set { return; }
308 } 308 }
309 309
@@ -312,9 +312,9 @@ namespace OpenSim.Region.Physics.Manager
312 get { return 0f; } 312 get { return 0f; }
313 } 313 }
314 314
315 public override PhysicsVector Force 315 public override Vector3 Force
316 { 316 {
317 get { return PhysicsVector.Zero; } 317 get { return Vector3.Zero; }
318 set { return; } 318 set { return; }
319 } 319 }
320 320
@@ -329,7 +329,7 @@ namespace OpenSim.Region.Physics.Manager
329 329
330 } 330 }
331 331
332 public override void VehicleVectorParam(int param, PhysicsVector value) 332 public override void VehicleVectorParam(int param, Vector3 value)
333 { 333 {
334 334
335 } 335 }
@@ -349,14 +349,14 @@ namespace OpenSim.Region.Physics.Manager
349 349
350 } 350 }
351 351
352 public override PhysicsVector CenterOfMass 352 public override Vector3 CenterOfMass
353 { 353 {
354 get { return PhysicsVector.Zero; } 354 get { return Vector3.Zero; }
355 } 355 }
356 356
357 public override PhysicsVector GeometricCenter 357 public override Vector3 GeometricCenter
358 { 358 {
359 get { return PhysicsVector.Zero; } 359 get { return Vector3.Zero; }
360 } 360 }
361 361
362 public override PrimitiveBaseShape Shape 362 public override PrimitiveBaseShape Shape
@@ -364,15 +364,15 @@ namespace OpenSim.Region.Physics.Manager
364 set { return; } 364 set { return; }
365 } 365 }
366 366
367 public override PhysicsVector Velocity 367 public override Vector3 Velocity
368 { 368 {
369 get { return PhysicsVector.Zero; } 369 get { return Vector3.Zero; }
370 set { return; } 370 set { return; }
371 } 371 }
372 372
373 public override PhysicsVector Torque 373 public override Vector3 Torque
374 { 374 {
375 get { return PhysicsVector.Zero; } 375 get { return Vector3.Zero; }
376 set { return; } 376 set { return; }
377 } 377 }
378 378
@@ -392,9 +392,9 @@ namespace OpenSim.Region.Physics.Manager
392 set { } 392 set { }
393 } 393 }
394 394
395 public override PhysicsVector Acceleration 395 public override Vector3 Acceleration
396 { 396 {
397 get { return PhysicsVector.Zero; } 397 get { return Vector3.Zero; }
398 } 398 }
399 399
400 public override bool IsPhysical 400 public override bool IsPhysical
@@ -441,26 +441,26 @@ namespace OpenSim.Region.Physics.Manager
441 { 441 {
442 } 442 }
443 443
444 public override void LockAngularMotion(PhysicsVector axis) 444 public override void LockAngularMotion(Vector3 axis)
445 { 445 {
446 } 446 }
447 447
448 public override void AddForce(PhysicsVector force, bool pushforce) 448 public override void AddForce(Vector3 force, bool pushforce)
449 { 449 {
450 } 450 }
451 451
452 public override void AddAngularForce(PhysicsVector force, bool pushforce) 452 public override void AddAngularForce(Vector3 force, bool pushforce)
453 { 453 {
454 454
455 } 455 }
456 456
457 public override PhysicsVector RotationalVelocity 457 public override Vector3 RotationalVelocity
458 { 458 {
459 get { return PhysicsVector.Zero; } 459 get { return Vector3.Zero; }
460 set { return; } 460 set { return; }
461 } 461 }
462 462
463 public override PhysicsVector PIDTarget { set { return; } } 463 public override Vector3 PIDTarget { set { return; } }
464 public override bool PIDActive { set { return; } } 464 public override bool PIDActive { set { return; } }
465 public override float PIDTau { set { return; } } 465 public override float PIDTau { set { return; } }
466 466
@@ -475,7 +475,7 @@ namespace OpenSim.Region.Physics.Manager
475 public override float APIDDamping { set { return; } } 475 public override float APIDDamping { set { return; } }
476 476
477 477
478 public override void SetMomentum(PhysicsVector momentum) 478 public override void SetMomentum(Vector3 momentum)
479 { 479 {
480 } 480 }
481 481