diff options
author | teravus | 2012-11-15 10:05:16 -0500 |
---|---|---|
committer | teravus | 2012-11-15 10:05:16 -0500 |
commit | e9153e1d1aae50024d8cd05fe14a9bce34343a0e (patch) | |
tree | bc111d34f95a26b99c7e34d9e495dc14d1802cc3 /OpenSim/Region/Physics/OdePlugin/OdeScene.cs | |
parent | Merge master into teravuswork (diff) | |
download | opensim-SC-e9153e1d1aae50024d8cd05fe14a9bce34343a0e.zip opensim-SC-e9153e1d1aae50024d8cd05fe14a9bce34343a0e.tar.gz opensim-SC-e9153e1d1aae50024d8cd05fe14a9bce34343a0e.tar.bz2 opensim-SC-e9153e1d1aae50024d8cd05fe14a9bce34343a0e.tar.xz |
Revert "Merge master into teravuswork", it should have been avination, not master.
This reverts commit dfac269032300872c4d0dc507f4f9062d102b0f4, reversing
changes made to 619c39e5144f15aca129d6d999bcc5c34133ee64.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/OdeScene.cs | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs index d53bd90..7a50c4c 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs | |||
@@ -501,8 +501,6 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
501 | public int physics_logging_interval = 0; | 501 | public int physics_logging_interval = 0; |
502 | public bool physics_logging_append_existing_logfile = false; | 502 | public bool physics_logging_append_existing_logfile = false; |
503 | 503 | ||
504 | private bool avplanted = false; | ||
505 | private bool av_av_collisions_off = false; | ||
506 | 504 | ||
507 | public d.Vector3 xyz = new d.Vector3(128.1640f, 128.3079f, 25.7600f); | 505 | public d.Vector3 xyz = new d.Vector3(128.1640f, 128.3079f, 25.7600f); |
508 | public d.Vector3 hpr = new d.Vector3(125.5000f, -17.0000f, 0.0000f); | 506 | public d.Vector3 hpr = new d.Vector3(125.5000f, -17.0000f, 0.0000f); |
@@ -646,9 +644,6 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
646 | avMovementDivisorWalk = physicsconfig.GetFloat("av_movement_divisor_walk", 1.3f); | 644 | avMovementDivisorWalk = physicsconfig.GetFloat("av_movement_divisor_walk", 1.3f); |
647 | avMovementDivisorRun = physicsconfig.GetFloat("av_movement_divisor_run", 0.8f); | 645 | avMovementDivisorRun = physicsconfig.GetFloat("av_movement_divisor_run", 0.8f); |
648 | avCapRadius = physicsconfig.GetFloat("av_capsule_radius", 0.37f); | 646 | avCapRadius = physicsconfig.GetFloat("av_capsule_radius", 0.37f); |
649 | avplanted = physicsconfig.GetBoolean("av_planted", false); | ||
650 | av_av_collisions_off = physicsconfig.GetBoolean("av_av_collisions_off", false); | ||
651 | |||
652 | IsAvCapsuleTilted = physicsconfig.GetBoolean("av_capsule_tilted", false); | 647 | IsAvCapsuleTilted = physicsconfig.GetBoolean("av_capsule_tilted", false); |
653 | 648 | ||
654 | contactsPerCollision = physicsconfig.GetInt("contacts_per_collision", 80); | 649 | contactsPerCollision = physicsconfig.GetInt("contacts_per_collision", 80); |
@@ -668,8 +663,6 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
668 | meshSculptLOD = physicsconfig.GetFloat("mesh_lod", 32f); | 663 | meshSculptLOD = physicsconfig.GetFloat("mesh_lod", 32f); |
669 | MeshSculptphysicalLOD = physicsconfig.GetFloat("mesh_physical_lod", 16f); | 664 | MeshSculptphysicalLOD = physicsconfig.GetFloat("mesh_physical_lod", 16f); |
670 | m_filterCollisions = physicsconfig.GetBoolean("filter_collisions", false); | 665 | m_filterCollisions = physicsconfig.GetBoolean("filter_collisions", false); |
671 | |||
672 | |||
673 | 666 | ||
674 | if (Environment.OSVersion.Platform == PlatformID.Unix) | 667 | if (Environment.OSVersion.Platform == PlatformID.Unix) |
675 | { | 668 | { |
@@ -1316,10 +1309,6 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1316 | if ((p1 is OdePrim) && (((OdePrim)p1).m_isVolumeDetect)) | 1309 | if ((p1 is OdePrim) && (((OdePrim)p1).m_isVolumeDetect)) |
1317 | skipThisContact = true; // No collision on volume detect prims | 1310 | skipThisContact = true; // No collision on volume detect prims |
1318 | 1311 | ||
1319 | if (av_av_collisions_off) | ||
1320 | if ((p1 is OdeCharacter) && (p2 is OdeCharacter)) | ||
1321 | skipThisContact = true; | ||
1322 | |||
1323 | if (!skipThisContact && (p2 is OdePrim) && (((OdePrim)p2).m_isVolumeDetect)) | 1312 | if (!skipThisContact && (p2 is OdePrim) && (((OdePrim)p2).m_isVolumeDetect)) |
1324 | skipThisContact = true; // No collision on volume detect prims | 1313 | skipThisContact = true; // No collision on volume detect prims |
1325 | 1314 | ||
@@ -1983,8 +1972,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1983 | 1972 | ||
1984 | newAv.Flying = isFlying; | 1973 | newAv.Flying = isFlying; |
1985 | newAv.MinimumGroundFlightOffset = minimumGroundFlightOffset; | 1974 | newAv.MinimumGroundFlightOffset = minimumGroundFlightOffset; |
1986 | newAv.m_avatarplanted = avplanted; | 1975 | |
1987 | |||
1988 | return newAv; | 1976 | return newAv; |
1989 | } | 1977 | } |
1990 | 1978 | ||
@@ -1999,7 +1987,6 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1999 | 1987 | ||
2000 | internal void AddCharacter(OdeCharacter chr) | 1988 | internal void AddCharacter(OdeCharacter chr) |
2001 | { | 1989 | { |
2002 | chr.m_avatarplanted = avplanted; | ||
2003 | if (!_characters.Contains(chr)) | 1990 | if (!_characters.Contains(chr)) |
2004 | { | 1991 | { |
2005 | _characters.Add(chr); | 1992 | _characters.Add(chr); |
@@ -4320,4 +4307,4 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
4320 | m_stats[ODEPrimUpdateFrameMsStatName] = 0; | 4307 | m_stats[ODEPrimUpdateFrameMsStatName] = 0; |
4321 | } | 4308 | } |
4322 | } | 4309 | } |
4323 | } | 4310 | } \ No newline at end of file |