aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-09-03Don't need to check separate physics status in bulletsim update since that ↵Justin Clark-Casey (justincc)1-2/+3
method is only run for an indepndent thread anyway. Also remove bulletsim monitored thread from watchdog on shutdown.
2014-09-03Make bulletsim thread alarm if no update for 5 seconds.Justin Clark-Casey (justincc)1-1/+4
The cost is minimal (also done for scene loop) at the benefit of telling us if this thread simply stops for some reason.
2014-09-03minor: fix indenting from previous commit b08ab1eJustin Clark-Casey (justincc)1-7/+7
2014-09-03If BulletSim is running on its own threads, start this thread via the thread ↵Justin Clark-Casey (justincc)1-3/+8
watchdog. This allows us to see the presence of the permanent thread via the "show threads" console comand. Also adds the region name to the thread name.
2014-08-21BulletSim: add new Bullet 2.82 constraint type codes and rename theRobert Adams2-7/+9
BulletSim fixed constraint to not be confused with the native version.
2014-07-30BulletSim: thread safe handling of list of avatars.Robert Adams1-3/+18
Fix for 7284 which is an enumeration exception when starting up a region.
2014-07-29Allow the "debug scene set physics false|true" command to work when ↵Justin Clark-Casey (justincc)2-1/+14
bulletsim physics is running in a separate thread. This will also allow the "disable physics" setting in the region debug viewer dialog to work in this circumstance.
2014-07-26BulletSim: rearrange code for sensing whether shapes have beenRobert Adams3-60/+60
constructed. Add routine to check for failed and use that method rather than checking individual state.
2014-07-18BulletSim: Modify first and default vehicle vertical attractor to be feature ↵Vegaslon1-0/+14
complete with use of the Limit Roll Only Flag. Signed-off-by: Robert Adams <misterblue@misterblue.com>
2014-07-17BulletSim: rearrange code to prevent using null pointers when aRobert Adams1-11/+10
child mesh is not available when building a linkset.
2014-06-27Bulletsim: Create AvatarTerminalVelocity to BulletSim like what ODE and SL ↵Vegaslon2-2/+25
has. Before this falling from really high caused the avatar to fall faster then the veiwer can handle and cause camera issues.
2014-06-20BulletSim: add some locking for collision lists to prevent collsionsRobert Adams2-4/+15
from locking up when running BulletSim on a separate thread.
2014-06-18BulletSim: stop processing linkset child when it is discovered that theRobert Adams1-0/+1
child doesn't have a physical shape. Another attempt at fixing Mantis 7191.
2014-06-18BulletSim: more tweeks to AliciaRaven's flying mods. Added parametersRobert Adams2-11/+18
AvatarFlyingGroundMargin and AvatarFlyingGroundUpForce set to 5.0 and 2.0 respectively which seems to give about the same action as in SL. Also moved force addition to before the velocity to force computation so the upward velocity is properly applied to the avatar mass.
2014-06-17Fix previous commit to ignore water height and allow flying underwater ↵AliciaRaven1-16/+1
(swimming) Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
2014-06-17Add upward force to flight when close to the ground. Prevents current belly ↵AliciaRaven1-0/+26
flop to the floor when flying with bullet physics and acts more like ODE and SL flight. Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
2014-06-17Change assembly versions to 0.8.1Justin Clark-Casey (justincc)1-1/+1
2014-06-08BulletSim: fix exceptions while rebuilding linksets with mesh children.Robert Adams1-3/+30
This should get around the exception reported in Mantis 7191 and 7204 by checking for the unbuilt child and rebuilding the linkset the next tick. A warning message is output when this rebuild happens and this message is clamped to 10 times in case there is a problem with a loop.
2014-05-30Fix issue with BulletSim avatar level flight jitter by commenting out ↵Justin Clark-Casey (justincc)1-1/+12
RawVelocity update threshold for now in BSCharacter.UpdateProperties(). For some reason as yet unidentified (feedback?) a threshold above 0.4 here causes the RawVelocity to move between a lower and upper bound rather than remaining constant. The RawVelocity increased until it triggered the threshold update, at which point it started to decrease until it again triggered the threshhold update. This delta-v was enough to exceed the checks in ScenePresence.SendTerseUpdateToAllClients() and produce jittery avatar flight because of the fluctuating velocity. With a threshold of 0.4 (or 0, as with ODE), the RawVelocity remains constant in BulletSim and so avatar flight becomes mostly smooth - remaining occasional glitches appear to be a result of errors in distance extraploation. There are no obvious problems with commenting out the threshold. Misterblue, if this is wrong or I've missed some subtlety here, please feel free to revert and/or correct. The same considerations may or may not apply to object velocity updates.
2014-05-26BulletSim: add locking of PhysObjects while processing simulationRobert Adams1-14/+20
step updates and collisions. This is an attempt to fix a crash reported by Justin when doing high velocity teleports.
2014-05-17BulletSim: adjust avatar step up parameters to better walk up smallRobert Adams2-4/+4
staircases. This change is required because of the change in the avatar default shape from the capsule to the rectangle.
2014-04-28BulletSim: non-functional changes to debugging statements and formatting.Robert Adams1-6/+6
2014-04-28BUlletSim: move safeynet ground plane to lower altitude. Define new BulletSimRobert Adams2-2/+6
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.
2014-04-23Eliminated many warningsOren Hurvitz7-3/+25
2014-04-12BulletSim: reduce the terrain collison margin to be the same as otherRobert Adams1-1/+1
objects in the world. This was originally changed in an attempt to make vehicles work better but the effect was not that large and it causes avatars to float above the terrain.
2014-04-10BulletSim: small tweek to avatar height reduce feet embedded into prims.Robert Adams1-1/+1
This adjustment makes a default, shoeless avatar stand properly on a prim for the various heights (0% to 100% in the appearance adjustment).
2014-04-03BulletSim: Minor Fix to vehicle hovering, add more ways to disable it.Vegaslon1-1/+1
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
2014-04-02BulletSim: make avatar physical shape to be a rectangle rather thanRobert Adams3-11/+47
a capsule. Set the default to be the rectangle shape and adjust the parameters in OpenSimDefaults.ini for the new shape. The rectangle shape will perform better and avatar height can be computed more accurately.
2014-03-23BulletSim: fix problem where axis constraints were also constrainingRobert Adams1-3/+5
linear motion. The code was limiting linear motion to be only in the positive direction for any axis that was constrained.
2014-03-22BulletSim: Fix jumping while running. Was unintentional taking way all ↵Vegaslon1-1/+1
upward target motion for avatar when running. Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
2014-02-11BulletSim: the minimum vehicle velocity was set too low so moving slowRobert Adams2-1/+12
was getting zeroed too easily. Added VehicleMinVelocity parameter.
2014-01-29BulletSim: default physical terrain implementation to heightmap.Robert Adams2-1/+9
It originally looked like mesh terrain would perform better for vehicles but, after much use, heightmap is the clear winner. Force terrain implementation to heightmap if the physics region is larger than legacy region size. This solves running out of memory for very large regions.
2014-01-10Fix crash in BulletSim which sometimes happens making a linkset physicalRobert Adams1-7/+32
(like sitting on and activating a vehicle) and crossing borders. This keeps better bookkeeping on compound shapes so BulletSim can identify them when being freed.
2013-12-26varregion: many more updates removing the constant RegionSize and replacingRobert Adams2-1/+2
with a passed region size. This time in the map code and grid services code.
2013-11-04varregion: add plumbing to pass region size from Scene down to theRobert Adams4-8/+19
physics engine. Older physics engines will default to the legacy region size. Update BulletSim to use the new region size information.
2013-11-04varregion: remove uses of region size constant. In particular, update sceneRobert Adams1-5/+6
to check for border crossings based on the size of the region.
2013-10-26BulletSim: update collision flags to make sure they fit in the shorts provided.Robert Adams1-7/+7
2013-10-23BulletSim: change collision flags for groundplane to not interact with ↵Robert Adams4-7/+13
static objects. Reorder collision flag setting code for terrain to fit pattern used elsewhere.
2013-10-15BulletSim: implement the SL bug where VEHICLE_HOVER_UP_ONLY disablesRobert Adams1-0/+12
the vehicle buoyancy if the vehicle is above its hover height. This is a known misfeature of this vehicle flag which has been accepted since it would break too many implementations. The problem is noticed when creating a jetski-like vehicle that jumps over sand bars. A boat normally is configured with neutral buoyancy and hovering at water height. When it jumps the sandbar, it needs to have gravity applied to get back to water level.
2013-10-11BulletSim: Fix snap back from edge of region problem. Mantis 6794.Robert Adams1-2/+13
2013-10-04Bump OPenSimulator version and assembly versions up to 0.8.0 DevJustin Clark-Casey (justincc)1-1/+1
2013-09-20BulletSim: reduce avatar walking stopped threshold.Robert Adams2-0/+4
Add parameter for setting the walking stopped threshold. This fixes the slight jump when an avatar stops walking.
2013-09-20BulletSim: zero velocity when avatar not moving.Robert Adams1-0/+1
This fixes a movement jitter that happens when an avatar is standing on a tilted surface.
2013-09-11BulletSim: remove collision cache clearing logic for physical objects.Robert Adams1-2/+5
This fixes constraints from getting messed up when properties change.
2013-09-11BulletSim: add ClearCollisionProxyCache function to API.Robert Adams4-2/+35
Add proxy cache clearing when some properties are changed. This fixes a problem where objects would stop colliding of they were moved with setPosition mulitple times.
2013-09-11BulletSim: add LSL function and plumbing for setting a springRobert Adams3-2/+37
equilibrium point in the physics engine constraint.
2013-09-11BulletSim: add extended physics LSL constants for axis specification.Robert Adams2-35/+60
Add specific error warnings for mis-matched parameter types in extended physics functions.
2013-09-11BulletSim: ability to specify groups of axis to modify in constraint ↵Robert Adams1-8/+45
parameters that control multiple axis. Add useLinearReferenceFrameA constraint parameter.
2013-09-11BulletSim: add axis parameter for specifying enable, damping, and stiffness ↵Robert Adams3-17/+38
for spring constraints. Renumber parameter ops since I can as no one is using them yet.
2013-09-11BulletSim: implementation of setting spring specific physical parameters. ↵Robert Adams3-35/+76
Add setting of linkset type to physChangeLinkParams. Lots of detail logging for setting of linkset constraint parameters.