diff options
author | Kitto Flora | 2010-03-12 13:48:31 -0500 |
---|---|---|
committer | Kitto Flora | 2010-03-12 13:48:31 -0500 |
commit | 7bd48d383d3383c1e633f76f76a5291f4224d48a (patch) | |
tree | 18997a5b1a123091af18a1a7984d7dd7873930ac /OpenSim/Region/Physics/ChOdePlugin | |
parent | Dynamics Integration Part 1 (diff) | |
parent | Small consistency change (diff) | |
download | opensim-SC_OLD-7bd48d383d3383c1e633f76f76a5291f4224d48a.zip opensim-SC_OLD-7bd48d383d3383c1e633f76f76a5291f4224d48a.tar.gz opensim-SC_OLD-7bd48d383d3383c1e633f76f76a5291f4224d48a.tar.bz2 opensim-SC_OLD-7bd48d383d3383c1e633f76f76a5291f4224d48a.tar.xz |
Resolved merge
Diffstat (limited to 'OpenSim/Region/Physics/ChOdePlugin')
-rw-r--r-- | OpenSim/Region/Physics/ChOdePlugin/ODECharacter.cs | 8 | ||||
-rw-r--r-- | OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs | 40 |
2 files changed, 20 insertions, 28 deletions
diff --git a/OpenSim/Region/Physics/ChOdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/ChOdePlugin/ODECharacter.cs index 2eb519f..8e87ad9 100644 --- a/OpenSim/Region/Physics/ChOdePlugin/ODECharacter.cs +++ b/OpenSim/Region/Physics/ChOdePlugin/ODECharacter.cs | |||
@@ -734,16 +734,10 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
734 | 734 | ||
735 | } | 735 | } |
736 | 736 | ||
737 | public override void VehicleFlagsSet(int flags) | 737 | public override void VehicleFlags(int flags, bool remove) |
738 | { | 738 | { |
739 | |||
740 | } | 739 | } |
741 | |||
742 | public override void VehicleFlagsRemove(int flags) | ||
743 | { | ||
744 | 740 | ||
745 | } | ||
746 | |||
747 | public override void SetVolumeDetect(int param) | 741 | public override void SetVolumeDetect(int param) |
748 | { | 742 | { |
749 | 743 | ||
diff --git a/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs index 5d24388..e51ef5b 100644 --- a/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs | |||
@@ -344,7 +344,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
344 | { | 344 | { |
345 | set { | 345 | set { |
346 | 346 | ||
347 | Console.WriteLine("Sel {0} {1} {2}", m_primName, value, m_isphysical); | 347 | //Console.WriteLine("Sel {0} {1} {2}", m_primName, value, m_isphysical); |
348 | // This only makes the object not collidable if the object | 348 | // This only makes the object not collidable if the object |
349 | // is physical or the object is modified somehow *IN THE FUTURE* | 349 | // is physical or the object is modified somehow *IN THE FUTURE* |
350 | // without this, if an avatar selects prim, they can walk right | 350 | // without this, if an avatar selects prim, they can walk right |
@@ -486,15 +486,10 @@ Console.WriteLine("Sel {0} {1} {2}", m_primName, value, m_isphysical); | |||
486 | { | 486 | { |
487 | ProcessRotationVehicleParam((Vehicle) param, rotation); | 487 | ProcessRotationVehicleParam((Vehicle) param, rotation); |
488 | } | 488 | } |
489 | 489 | ||
490 | public override void VehicleFlagsSet(int flags) | 490 | public override void VehicleFlags(int param, bool remove) |
491 | { | ||
492 | ProcessFlagsVehicleSet(flags); | ||
493 | } | ||
494 | |||
495 | public override void VehicleFlagsRemove(int flags) | ||
496 | { | 491 | { |
497 | ProcessFlagsVehicleRemove(flags); | 492 | ProcessVehicleFlags(param, remove); |
498 | } | 493 | } |
499 | 494 | ||
500 | public override void SetVolumeDetect(int param) | 495 | public override void SetVolumeDetect(int param) |
@@ -2425,8 +2420,9 @@ Console.WriteLine(" JointCreateFixed"); | |||
2425 | public void UpdatePositionAndVelocity() | 2420 | public void UpdatePositionAndVelocity() |
2426 | { | 2421 | { |
2427 | return; // moved to the MOVE() method | 2422 | return; // moved to the MOVE() method |
2423 | } | ||
2428 | // no lock; called from Simulate() -- if you call this from elsewhere, gotta lock or do Monitor.Enter/Exit! | 2424 | // no lock; called from Simulate() -- if you call this from elsewhere, gotta lock or do Monitor.Enter/Exit! |
2429 | if (_parent == null) | 2425 | /* if (_parent == null) |
2430 | { | 2426 | { |
2431 | Vector3 pv = Vector3.Zero; | 2427 | Vector3 pv = Vector3.Zero; |
2432 | bool lastZeroFlag = _zeroFlag; | 2428 | bool lastZeroFlag = _zeroFlag; |
@@ -2635,7 +2631,7 @@ Console.WriteLine(" JointCreateFixed"); | |||
2635 | } | 2631 | } |
2636 | } | 2632 | } |
2637 | } | 2633 | } |
2638 | 2634 | */ | |
2639 | public Matrix4 FromDMass(d.Mass pMass) | 2635 | public Matrix4 FromDMass(d.Mass pMass) |
2640 | { | 2636 | { |
2641 | Matrix4 obj; | 2637 | Matrix4 obj; |
@@ -2682,7 +2678,7 @@ Console.WriteLine(" JointCreateFixed"); | |||
2682 | { | 2678 | { |
2683 | _parent_scene.remCollisionEventReporting(this); | 2679 | _parent_scene.remCollisionEventReporting(this); |
2684 | m_eventsubscription = 0; | 2680 | m_eventsubscription = 0; |
2685 | } | 2681 | } |
2686 | 2682 | ||
2687 | public void AddCollisionEvent(uint CollidedWith, ContactPoint contact) | 2683 | public void AddCollisionEvent(uint CollidedWith, ContactPoint contact) |
2688 | { | 2684 | { |
@@ -3038,15 +3034,17 @@ Console.WriteLine(" JointCreateFixed"); | |||
3038 | } | 3034 | } |
3039 | 3035 | ||
3040 | }//end ProcessRotationVehicleParam | 3036 | }//end ProcessRotationVehicleParam |
3041 | 3037 | ||
3042 | internal void ProcessFlagsVehicleSet(int flags) | 3038 | internal void ProcessVehicleFlags(int pParam, bool remove) |
3043 | { | ||
3044 | m_flags |= (VehicleFlag)flags; | ||
3045 | } | ||
3046 | |||
3047 | internal void ProcessFlagsVehicleRemove(int flags) | ||
3048 | { | 3039 | { |
3049 | m_flags &= ~((VehicleFlag)flags); | 3040 | if (remove) |
3041 | { | ||
3042 | m_flags &= ~((VehicleFlag)pParam); | ||
3043 | } | ||
3044 | else | ||
3045 | { | ||
3046 | m_flags |= (VehicleFlag)pParam; | ||
3047 | } | ||
3050 | } | 3048 | } |
3051 | 3049 | ||
3052 | internal void ProcessTypeChange(Vehicle pType) | 3050 | internal void ProcessTypeChange(Vehicle pType) |
@@ -3253,7 +3251,7 @@ Console.WriteLine(" JointCreateFixed"); | |||
3253 | d.Vector3 vec = d.BodyGetPosition(Body); | 3251 | d.Vector3 vec = d.BodyGetPosition(Body); |
3254 | d.Quaternion ori = d.BodyGetQuaternion(Body); | 3252 | d.Quaternion ori = d.BodyGetQuaternion(Body); |
3255 | d.Vector3 vel = d.BodyGetLinearVel(Body); | 3253 | d.Vector3 vel = d.BodyGetLinearVel(Body); |
3256 | d.Vector3 rotvel = d.BodyGetAngularVel(Body); | 3254 | // d.Vector3 rotvel = d.BodyGetAngularVel(Body); |
3257 | d.Vector3 torque = d.BodyGetTorque(Body); | 3255 | d.Vector3 torque = d.BodyGetTorque(Body); |
3258 | _torque = new Vector3(torque.X, torque.Y, torque.Z); | 3256 | _torque = new Vector3(torque.X, torque.Y, torque.Z); |
3259 | Vector3 l_position = Vector3.Zero; | 3257 | Vector3 l_position = Vector3.Zero; |