aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSTerrainManager.cs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* BulletSim: non-functional changes to debugging statements and formatting.Robert Adams2014-04-281-6/+6
|
* BUlletSim: move safeynet ground plane to lower altitude. Define new BulletSimRobert Adams2014-04-281-2/+3
| | | | | | | parameter 'TerrainGroundPlane' which defaults to -500. BulletSim had assumed altitudes never went negative but that is not true. The ground plane is just a safety net so things wouldn't fall to infinity.
* varregion: add plumbing to pass region size from Scene down to theRobert Adams2013-11-041-2/+4
| | | | | | physics engine. Older physics engines will default to the legacy region size. Update BulletSim to use the new region size information.
* BulletSim: change collision flags for groundplane to not interact with ↵Robert Adams2013-10-231-3/+4
| | | | | | static objects. Reorder collision flag setting code for terrain to fit pattern used elsewhere.
* BulletSim: Fix snap back from edge of region problem. Mantis 6794.Robert Adams2013-10-111-2/+13
|
* BulletSim: remove trailing white space to make git happier. No functional ↵Robert Adams2013-04-291-5/+5
| | | | changes.
* BulletSim: rename variable 'PhysicsScene' to be either 'PhysScene' or ↵Robert Adams2013-04-291-28/+28
| | | | 'm_physicsScene' to match coding conventions and reduce confusion.
* BulletSim: fix problem where large sets of mega-regions weren't registeringRobert Adams2013-04-091-3/+3
| | | | all the terrain with the base region.
* BulletSim: rearrange mega-region terrain code to make the thread flowRobert Adams2013-04-011-15/+18
| | | | a little clearer.
* BulletSim: fix race condition when creating very large mega-regions.Robert Adams2013-03-281-14/+24
| | | | | | | | The symptom was exceptions while creating physical terrain. Reduce default terrain mesh magnification to 2 from 3 because the higher resolution uses a lot of memory and doesn't solve the terrain smoothness for vehicles. Added comments here and there and improved some debugging log messages.
* BulletSim: tweaks to terrain boundry computation. No functional changes.Robert Adams2013-03-281-21/+29
|
* BulletSim: add terrain contact processing threshold parameter. Initialize ↵Robert Adams2013-03-191-0/+1
| | | | contact processing threshold for static object as well as mesh terrain.
* BulletSim: remove the ability for avatars to fly off the edge ofRobert Adams2013-03-091-5/+95
| | | | | regions when there are no region neighbors. Add some terrain location processing routines to support above.
* BulletSim: nearly complete in conversion from BulletSimAPI to BSAPITemplate. ↵Robert Adams2012-12-311-1/+1
| | | | Only initialization and debug fuctions left.
* BulletSim: another round of conversion: dynamics world and collision object ↵Robert Adams2012-12-311-8/+5
| | | | functions.
* BulletSim: first round of conversion from direct BulletSimAPI interfacing by ↵Robert Adams2012-12-311-4/+4
| | | | BulletSim core to using the BulletSimAPITemplate. Physical object creation and destruction first.
* BulletSim: Move all the parameter variables, tables and get and fetch logic ↵Robert Adams2012-12-211-5/+5
| | | | to a separate, static class for easier addition and to remove all that bulk from the BSScene class.
* BulletSim: refactor to combine common terrain height testing code. Add ↵Robert Adams2012-12-161-38/+48
| | | | function to test if a position is over known terrain.
* BulletSim: remove some errors on shutdown by moving terrain destruction ↵Robert Adams2012-12-161-1/+9
| | | | until after physical object destruction. TerrainManager also made disposable and that feature used.
* BulletSim: Add 'BulletSimData' which separates structures createdRobert Adams2012-12-131-2/+2
| | | | | | for the operation of BulletSim and those defintiions/structures defined so they can be used in the unmanaged world. Consolidate setting of collision flags so implementation is not scattered.
* BulletSim: Fix crash on the destruction of physical linksets.Robert Adams2012-12-101-2/+2
| | | | | | | | | While fixing the above, add methods to physical body and shape pointer wrapper so routines won't have to know that IntPtr.Zero means no physical instance. Fix problem with physical linksets failing after a few sits and unsits by properly restoring child prom positions for compound linksets after multiple selection and deselections.
* BulletSim: Reduce idle region physics overhead where there are MANYRobert Adams2012-12-031-2/+2
| | | | | | | | | | | | static objects by more restrictive selection of objects that collide with static objects. Rename collision mask fuctions from 'filter' to 'group' so it is clear what is being set. Rename BulletSimAPI.SetCollisionFilterMask() to SetCollisionGroupMask to match above. Restore passing of time step to linear and angular motion component routines. Use buffering vehicle physical parameter get/set routines consistantly. Make range enforcement clearer by using ClampInRange() function for parameter setting. Remove commented out experimental vehicle calculations.
* BulletSim: move GetWaterLevelAtXYZ from BSScene to BSPhysTerrain.Robert Adams2012-11-281-2/+31
|
* BulletSim: add parameter for terrain collision margin.Robert Adams2012-11-251-49/+44
| | | | Add locking around unlikely but possible race conditions on terrain list.
* Rename BulletSim's PhysicsShapeType to BSPhysicsShapeType because itMelanie2012-11-221-1/+1
| | | | conflicts with PhysicsShape type defined in later libOMV
* BulletSim: Make avatar capsule so it is not circular.Robert Adams2012-11-211-1/+1
| | | | | | | | | Simple attempt to make avatars better shaped. Replace parameter 'avatarCapsuleRadius' with 'avatarCapsuleWidth' and 'avatarCapsuleDepth'. More tweeking to avatar height calculation. A little better but short avatar's feet are above the terrain and tall avatar's feet are a little below the ground.
* BulletSim: Properly position mesh terrain on creation (fixes terrain not ↵Robert Adams2012-11-211-39/+35
| | | | appearing to be working). Centralize terrain shape creation logic. Remove very chatty detail log messages.
* BulletSim: add terrainImplementation parameter with default to Mesh.Robert Adams2012-11-211-5/+40
|
* BulletSim: enablement and debugging of mesh terrain.Robert Adams2012-11-211-8/+18
|
* BulletSim: pull heightmap implementation out of the terrain manager so a ↵Robert Adams2012-11-211-179/+78
| | | | mesh terrain can be implemented.
* BulletSim: uplevel PhysicsShapeType out of ShapeData structure (since it is ↵Robert Adams2012-11-211-2/+2
| | | | getting simplified out of existance someday) and update all the references to that enum.
* BulletSim: debugging of compound shape implementation of linksets.Robert Adams2012-11-031-17/+4
| | | | | | | | | Add compound shape creation and freeing in shape manager. Add optional taint-time execution method and update code to use it. Add API2 linkage for more compound shape methods (get num, get/remove by index, ...) Modify perferred shape return so linkset children can have differet shapes than root. Add Position and Orientation calls to linksets so children can be moved around by the linkset by its own calculation. Allows for very general linkset implementations.
* BulletSim: Add banking and other new code to vechile dynamics. Add third ↵Robert Adams2012-11-031-1/+1
| | | | party license and contributor in for for Aurora-Sim project for physics code.
* BulletSim: fix problem with avatars sinking into the ground.Robert Adams2012-10-231-2/+2
| | | | Change terrain activation state to DISABLE_SIMULATION for better performance.
* BulletSim: fix bug that caused error (and a crash on 32 bit Linux) when mesh ↵Robert Adams2012-10-221-3/+1
| | | | assets weren't already in the cache. Comment cleanups.
* BulletSim: reorder avatar collision checking to eliminate double collision_end.Robert Adams2012-10-191-0/+1
| | | | | | Various tweekings to avatar shape/mass/inertia/etc. Remove change from avatar radius to diameter. But still the avatar sinks. Collision_end now happens immediately rather than at the next subscription time.
* BulletSim: remove code in ShapeCollection that hinted at shape sharing.Robert Adams2012-10-191-1/+2
| | | | | Add new function to ParameterDefn for calling BulletSimAPI to set values. Tweaking to BSCharacter parameter setting to try and have avatars stand.
* BulletSim: Change defaults for constraint CFM and ERP to make large linksets ↵Robert Adams2012-10-111-9/+6
| | | | more rigid. Remove mass calculation for terrain (it should stay a static object).
* BulletSim: cosmetic changes (comments and renaming). Give mass to terrain to ↵Robert Adams2012-10-111-6/+8
| | | | improve interactions.
* BulletSim: remove the trailing spaces from lines to make git happierRobert Adams2012-09-271-16/+16
|
* BulletSim: Fix linkset crash. Caused by the different body and shapeRobert Adams2012-09-271-1/+2
| | | | | | | pointers at runtime and at taint-time. Now passes the body into the taint. Vehicles zero inertia when active to eliminate Bullet's contribution to vehicle motion.
* BulletSim: Terrain sets proper collision flags on creation.Robert Adams2012-09-271-10/+10
| | | | | | Static objects are set to ISLAND_SLEEPING rather than DISABLE_SIMULATION. Might reconsider this and, alternatively, have dynamic objects force activation. Clean up use of DetailLog().
* BulletSim: btGhostObjects working to make 'volume detect' work.Robert Adams2012-09-271-2/+10
| | | | | | | | | | Rearrangement and cleanup of shape collection code. Much more readable. Enabling and use of collision filters and masks. Addition of ID to body creation BulletSimAPI calls so always set in shape for collision reporting. Change default of ShouldSplitSimulationIslands and ShouldRandomizeSolverOrder from 'false' to 'true'. When 'false', this suppresses NO_CONTACT_RESPONSE which makes volume detect fail.
* BulletSim: renamed members of BulletShape, BulletSim and BulletBodyRobert Adams2012-09-271-23/+23
| | | | | | | | | | | | so the members case is consistant. Caused modifications everywhere. New logic in BSShapeCollection to track use and sharing of shapes. I just reslized, though, that shapes cannot be shared because the shape's UserPointer is the localID of the prim and is required for tracking collisions. More changes coming. Added DuplicateCollisionShape2() to API and changed BuildNativeShape2 to take a ShapeData structure so don't have to pass so many parameters. This matches the latest version of BulletSim.dll. Additions and removal of DetailLog() statements for debugging.
* BulletSim: add class and infrastructure for shape and objectRobert Adams2012-09-271-2/+5
| | | | | tracking in the C# code. Needed for the changing body type (to and from GhostObjects) for volumeDetect.
* BulletSim: Convert BSCharacter to use common BSPhysObject code and variables.Robert Adams2012-09-271-33/+34
| | | | | | | Fix avatar height calculation to properly account for the capsule ends. Rearrange some locking in TerrainManager to eliminate possible race conditions. Move DetailLog() definition into common BSPhysObject class. Some variable renaming to make usage clearer (refactor.rename makes this so easy).
* BulletSim: Way too many changes in one commit.Robert Adams2012-09-151-22/+38
| | | | | | | | | | | | | | | | | | | | Many changes to BSDynamic for readability and commentary. Linkset hacking for vehicles: don't over mass the root prim. Add parameter for link constraint solver iterations. Correct uses of timestep in timescale calculations for vehicles. Reorganize code/logic for making objects static and dynamic for readability and use of API2. Changed most calls in BSPrim to use API2 calls (the new way). Avatars do not generate default Bullet collision events but do call up to the simulator for every avatar. Reduces overhead. Objects added to collision list only if they are processing collisions. Reduces overhead especially for large numbers of avatars. Generalize call for water height to GetWaterHeightAtXYZ(). Catch and correct exception getting terrain height when out of bounds. Correct race condition in Terrain Manager where creation wasn't at taint-time. Add API calls for constructing compound shapes. Move NeedsMeshing() logic into object class. Reorganize logic for object meshing to reduce rebuilding of meshs/hulls.
* BulletSim: Add Bullet body and shape to BSPhysObject and renameRobert Adams2012-09-071-2/+2
| | | | | | | | | 'Body' to 'BSBody' for disambiguation when reading code. Complete the API2 interface so nearly all methods on bullet classes are available to the managed code. The efficient single call simulation step is kept in place while all other creation/destruction/parameterization can be done in the managed code.
* BulletSim: Add some comments (gasp) and log messages.Robert Adams2012-09-071-2/+2
|
* BulletSim: Update BulletSimAPI to match the DLL interface.Robert Adams2012-08-311-132/+224
| | | | | | | | Major rework of terrain management which finally makes mega-regions work. Update heightmap of terrain by rebuilding the terrain's body and shape. There is a problem with just replacing the shape so this workaround will do for the moment but it will need to be resolved for mesh and hull switching.