diff options
author | Teravus Ovares | 2008-05-15 06:35:01 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-05-15 06:35:01 +0000 |
commit | 173d13b0a4e68e682fd5e585290a48f82ec9a475 (patch) | |
tree | a5bffacc2f1c60a26e6a5528603954cce11b6787 /OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | |
parent | * Committing Patch mantis 0001275: [PATCH] Add more perms-fu. From Melanie. ... (diff) | |
download | opensim-SC-173d13b0a4e68e682fd5e585290a48f82ec9a475.zip opensim-SC-173d13b0a4e68e682fd5e585290a48f82ec9a475.tar.gz opensim-SC-173d13b0a4e68e682fd5e585290a48f82ec9a475.tar.bz2 opensim-SC-173d13b0a4e68e682fd5e585290a48f82ec9a475.tar.xz |
* Added about half of the planned ODE physics options to OpenSim.ini.example.
* Some will do cool things, some will make your scene explode dramatically if you're not careful.
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin/ODEPrim.cs')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs index d1f1074..37a8b77 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | |||
@@ -1155,14 +1155,14 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1155 | 1155 | ||
1156 | if (m_buoyancy > 0) | 1156 | if (m_buoyancy > 0) |
1157 | { | 1157 | { |
1158 | fz = ((9.8f * m_buoyancy) * m_mass); | 1158 | fz = (((-1 * _parent_scene.gravityz) * m_buoyancy) * m_mass); |
1159 | 1159 | ||
1160 | //d.Vector3 l_velocity = d.BodyGetLinearVel(Body); | 1160 | //d.Vector3 l_velocity = d.BodyGetLinearVel(Body); |
1161 | //m_log.Info("Using Buoyancy: " + buoyancy + " G: " + (9.8f * m_buoyancy) + "mass:" + m_mass + " Pos: " + Position.ToString()); | 1161 | //m_log.Info("Using Buoyancy: " + buoyancy + " G: " + (_parent_scene.gravityz * m_buoyancy) + "mass:" + m_mass + " Pos: " + Position.ToString()); |
1162 | } | 1162 | } |
1163 | else | 1163 | else |
1164 | { | 1164 | { |
1165 | fz = (-1 * ((9.8f * (-1 * m_buoyancy)) * m_mass)); | 1165 | fz = (-1 * (((-1 * _parent_scene.gravityz) * (-1 * m_buoyancy)) * m_mass)); |
1166 | } | 1166 | } |
1167 | 1167 | ||
1168 | 1168 | ||
@@ -1171,7 +1171,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1171 | if (m_usePID) | 1171 | if (m_usePID) |
1172 | { | 1172 | { |
1173 | // If we're using the PID controller, then we have no gravity | 1173 | // If we're using the PID controller, then we have no gravity |
1174 | fz = 9.8f * this.Mass; | 1174 | fz = (-1 * _parent_scene.gravityz) * this.Mass; |
1175 | 1175 | ||
1176 | // no lock; for now it's only called from within Simulate() | 1176 | // no lock; for now it's only called from within Simulate() |
1177 | 1177 | ||