aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-06-10Formatting cleanup.Jeff Ames1-1/+1
2009-05-22cleaning out warnings.Dr Scofield1-1/+1
NOTE: we currently have a gazillion warnings caused stuff flagged as "obsolete" (OGS1 stuff) --- what's up with that?
2009-04-20* Allow passing of material type to physics engineTeravus Ovares1-19/+241
* Define low friction and medium bounce for Glass
2009-04-19Added a "force_simple_prim_meshing" option to the ODE settings in ↵Dahlia Trimble1-25/+18
OpenSim.ini which will use meshes for collisions with simple prim shapes rather than internal ODE algorithms. This may help with Mantis #2905 and Mantis #3487 for those experimenting with capsule settings. Note that this will increase memory usage and region startup time.
2009-03-31From: Alan M Webb <alan_webb@us.ibm.com>Dr Scofield1-1/+9
Add sanity check to fly-height calculation so that it does not attempt to retrieve information from non-existent regions.
2009-03-30* Fixing thread safety of avatar adding and removing from the Physics Scene ↵Teravus Ovares1-6/+25
in the ODEPlugin * This may help one of the symptoms or mantis 3363 , however it probably won't solve the occasional NonFinite Avatar Position detected.. issues that some people see. That is probably an entirely different issue(NaN).
2009-03-11* Make all coded defaults match settings in OpenSim.ini.exampleJustin Clarke Casey1-4/+4
* In most cases, the setting in OpenSim.ini.example is taken as the canonical one since this is the file virtually everyone ends up using * OpenSim will start up with a blank OpenSim.ini, in which case sqlite is the default database (as before)
2009-03-07Correct a typo, purely cosmetic.idb1-1/+1
FixesMantis #3263
2009-03-07* Making the minimum ground offset for flying a configurable offset in the ↵Teravus Ovares1-0/+3
OpenSim.ini. This is the code that causes you to rise off the ground when you press the fly button and attempts to keep you above ground automatically when flying in a simulator. * minimum_ground_flight_offset, by default is 3 meters, as per Kitto Flora See OpenSim.ini.example for an example.
2009-03-07* fixes mantis 3259Teravus Ovares1-0/+9
* I'm concerned however that the 'minimum fly height' should really be implemented in ScenePresence and not in the specific physics plugin so that all of the physics plugins can take advantage of it and if desired, a person could swap out the 'minimum fly height' functionality with other functionality.
2009-03-07* Added some limits to the maximum force applied per second by ↵Teravus Ovares1-1/+9
llMoveToTarget. Currently, it's 350 times the mass in newtons applied per second, maximum.
2009-03-06Fixes Mantis #3260. Thank you kindly, MCortez for a patch that:Charles Krinke1-0/+5
llSetHoverHeight() should not clamp the x/y position of an object the way MoveTo does, and it should recalculate the absolute height to hover at as an object moves to reflect the current ground/water height under it. Correctly implementing required adjusting the Physics interfaces and implementing at the physics plug-in level. The attached is a patch that correctly implements llSetHoverHeight() including updates to the ODE physics plug-in.
2009-02-22Mantis#3218. Thank you kindly, TLaukkan (Tommil) for a patch that:Charles Krinke1-4/+4
* Added log4net dependency to physxplugin in prebuild.xml. * Added missing m_log fields to classes. * Replaced Console.WriteLine with appropriate m_log.Xxxx * Tested that nant test target runs succesfully. * Tested that local opensim sandbox starts up without errors.
2009-02-15This started as way to correct Mantis #3158, which I believe should be fixed ↵diva1-1/+2
now. The flying status was temporarily being ignored, which caused the avie to drop sometimes -- there was a race condition. In the process it also fixes that annoying bug in basic physics where the avie would drop half-way to the ground upon region crossings (SetAppearance was missing). Additionally, a lot of child-agent-related code has been cleaned up; namely child agents are now consistently not added to physical scenes, and they also don't have appearances. All of that happens in MakeRoot, consistently.
2009-02-13Add copyright headers. Minor formatting cleanup. Fix some compiler ↵Jeff Ames1-2/+2
warnings. Fix some m_log declarations.
2009-02-12Thanks Kitto Flora for a patch that adds automatic min fly height to ODE - ↵Dahlia Trimble1-8/+10
Mantis #3134
2009-02-08* Some minor cleanupTeravus Ovares1-30/+30
* sealed OdeScene
2009-02-08Reverts patch from tuco/mikkopa/sempuki mantis #3072Teravus Ovares1-100/+100
2009-02-08* Limit the total number of joints created per frame to the maximum possible ↵Teravus Ovares1-12/+53
without causing a stack collision. * This fixes crashing on large sets of physical prims because of stack collisions (assuming you follow the directions on linux for starting ode with ulimit). After the maximum joints are created, objects will start to fall through the ground and be disabled. Not the best solution, but it's better then a crash caused by a stack collision with the process exceeding the maximum available memory/recursions per thread. * Make a clean region, make a stack of 5000 prim, 20 layers high. Make them physical, *SLOW*, but no crash.
2009-02-08* Fixes colliding with the terrain lower then 0 and higher then 256mTeravus Ovares1-11/+10
* The actual AABB of the heightfield on the Z is now determined by the minimum and maximum heightfield value in the terrain array (assuming it's a reasonable number). This might optimize collisions in simulators that have a small difference between minimum and maximum heightfield values.
2009-02-03Change access levels from private to protected to facilitateMike Mazur1-100/+100
subclassing; also add new method signatures. Thanks tuco and mikkopa. Fix Mantis #3072.
2009-01-31* Tweaks some locks when modifying an ODECharacter. This actually allows a ↵Teravus Ovares1-0/+3
user to log-in while the physics scene and the scripts are starting up. This also seems to smooth out the jerks on teleport/connect/disconnect a little bit. * If you log-in while the simulator is starting up, you won't be able to move and the sim stats will say 0 FPS, and 0 Physics Frames and you may see only terrain. Once the sim finishes starting up, it'll all resume as normal.
2009-01-14Improve parsing of joint parameters for NINJA physics (Mantis #2966). nlin1-1/+1
Multiple spaces or leading/trailing spaces when specifying the prims to connect should no longer cause problems.
2008-12-31Slight optimisation: Don't check for duplication if we won't use the result ↵Homer Horwitz1-7/+7
anyway.
2008-12-30Update svn properties, minor formatting cleanup.Jeff Ames1-8/+8
2008-12-26* Applying Nlin's NINJA Joint patch. v2. Mantis# 2874Teravus Ovares1-0/+571
* Thanks nlin! * To try it out, set ninja joints active in the ODEPhysicsSettings and use the example at: * http://forge.opensimulator.org/gf/download/frsrelease/142/304/demo-playground.tgz. * Don't forget to change the .tgz to .oar and load it with load-oar.
2008-12-20Mantis#2796. Thank you kindly, Gerhard for a patch that addresses:Charles Krinke1-1/+19
On a call of llVolumeDetect(1) (or any other number !=0) volume detection is enabled. Together with VD, the phantom flag is set to the GUI. On a call of llVolumeDetect(0), vd detection is switched of again, also the phantom state is removed. On a call to llSetState(STATE_PHANTOM, false) while VD is active, also VD is switched off. The same is true for unchecking the phantom flag via GUI. This allows to take back VD without the need to script just by removing the phantom flag. Things missing in this patch: persistance of the volume-detection flag. This needs more discussion and will be included in another patch soon.
2008-12-18Enabled complex meshing for simple box prims with non-zero shearDahlia Trimble1-2/+3
2008-12-15* Apply http://opensimulator.org/mantis/view.php?id=2775 with small tweaksJustin Clarke Casey1-5/+8
* This pushes an identifier for the OpenSim scene to the physics scene. This allows log messages from the physics scene to identify which OpenSim scene they relate to. * Thanks Gerhard
2008-12-10* Committing a slightly distilled version of nlin's ODECharacter race ↵Teravus Ovares1-7/+43
condition eliminator. * The modifications that I made were only so that it didn't require changes to the public physics api.
2008-12-09* Gerhard's patch m2781. Does some initial work for setting up llVolumeDetect.Teravus Ovares1-1/+1
* Warning! Physics API change. This means that the NBodySimulation needs to be updated! * PhysicsActor -> void SetVolumeDetect(int) needs to go into classes that use PhysicsActor as their base class.
2008-12-08* Adds some rudimentary error handling to the physics debug drawstuff tool.Teravus Ovares1-6/+16
2008-12-07* Tweaks physics so that linked prim are a single body. This will make ↵Teravus Ovares1-6/+177
linked prim more stable and probably the last obstacle to vehicles physics wise. * Fixed a bug that caused physics proxies to be scattered when you link an object. * Single physical prim work exactly the same as before, just linked physical prim will have changed.
2008-12-04* Apply http://opensimulator.org/mantis/view.php?id=2750 with a small tweak.Justin Clarke Casey1-2/+5
* Initializes ODE only when a scene is grabbed rather than on plugin load. This means we don't initialize ode if that physics engine is not used, and it allows other ode use plugins to be used instead.
2008-11-19Guard against a strange nullref in ODEMelanie Thielker1-0/+5
2008-11-09Enabled SoftERP for the contact structure but not SoftCFM.Charles Krinke1-1/+6
A tube on a pole is a bit less "flubbery" so maybe this is the right direction.
2008-11-09Clean up a few comments.Charles Krinke1-11/+3
2008-11-01Revert last checkin. Avatars fall through non-physical prims now.Charles Krinke1-12/+7
There is more to the solution then just enabling soft_erp and soft_cfm for all d.Contact cases.
2008-11-01Added soft_cfm and soft_erp to the general "contact" initializationCharles Krinke1-7/+12
for physical prim interactions. They were not previously enabled for prim-prim interactions.
2008-10-22* Add a config option for filtering collisions. Sometimes, under load, ↵Teravus Ovares1-0/+5
this seems to cause bouncing on really thin flat prim.
2008-10-18* Changed the dupe collision depth limiter to be slightly more restrictive. ↵Teravus Ovares1-3/+3
(less chance for a dupe)
2008-10-17* Fix an over compensation for bounciness on flat PrimitiveTeravus Ovares1-8/+5
* Implement the linear impulse portion of llPushObject. We should have a lsl compatible implementation of that portion of the push. Angular.. well. still have yet to implement a torque accumulator. * llPushObject respects the region and parcel settings for Restrict Push, it also respects GodMode as is defined in the LSL spec.
2008-10-17* Adds a lot of stability and performance to the physics engine. The ↵Teravus Ovares1-1/+86
avatar bounces less and things are a bit less explosive. * Additionally, you can probably get more physical prim now together.. though, I think this puts us back on par with where we were in the beginning of the year on number of physical objects. Experiment. Make videos. Send Feedback. Enjoy.
2008-10-16* minor: get rid of pointless ipeSenderJustin Clarke Casey1-0/+1
2008-10-16* Releases the inter-region thread synchronization between physics in ODE on ↵Teravus Ovares1-1/+2
the same instance. * If you are hosting many regions on a single instance, you will probably notice a decrease in region startup time and maybe a slight increase in performance. * Single regions won't notice anything different
2008-10-14* Cleaned up tons of code duplication in ODEPrim Teravus Ovares1-48/+102
* Re-enabled the native ODE prim types when possible * Fixed several invalid assumptions in the prim recycle process. * Added better message for 'reused a disposed physicsactor' * Added a way to recover from errors during collision_optimized * Added a way to recover from an error condition where prim_geom wasn't reset properly
2008-10-13* Based on user reports, it looks like the OS specific settings have been ↵Teravus Ovares1-4/+4
unified as far as tuning (thank heavens). * If you're experiencing knee bendiness try the windows settings, as the *nix settings seem to now be incorrect. (this update does that, but you may have your own opensim.ini settings active.
2008-10-12* This updates ODE to the most up-to-date version as of today. 1558Teravus Ovares1-0/+1
* Mac users, pray to chi11ken to make you a .dylib version * This is semi-tuned and post teravus hack. (Though I didn't apply the terrain pitting fix hack. I'm still deciding if it's necessary as there was a lot of work over the past several months on the heightfield collider. * Please use '--enable-shared --disable-demos --disable-asserts' if you are building your own libode in the configure step. Asserts are pretty much useless for use with .NET * This also updates ODE.NET as, there were some API changes in May that were just added to ODE.NET today.
2008-09-22Disabled use of ODE internal geometry to see if it affects the "waves ↵Dahlia Trimble1-12/+12
finger" error
2008-09-21ODE was using a box collision shape for some spheres - changed those cases ↵Dahlia Trimble1-2/+3
to now use a mesh instead.