aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSDynamics.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-07-09BulletSim: add parameter to optionally disable vehicle linear deflection.Robert Adams1-15/+27
Add parameter to not apply vehicle linear deflection Z forces if vehicle is not colliding. This defaults to 'true' so vehicles will fall even if there is some linear deflection to apply.
2013-07-08BulletSim: make all the different angularVerticalAttraction algorithmsRobert Adams1-132/+129
selectable from configuration paramters. Changed default algorithm to "1" from previous default as it seems to handle Y axis correction a little better. Add config file independent enablement of vehicle angular forces to make debugging easier (independent testing of forces).
2013-07-07BulletSim: Different Implementation of Angular Deflection for vehicles, ↵Vegaslon1-15/+16
Activates it again and fixes problem with fighting with vertical attractor removing wobble of forward axis. Comments on testing welcome, May require adjustments of this force or other forces after this commit, exact tweaking to come after testing on other hardware. Signed-off-by: Robert Adams <Robert.Adams@intel.com>
2013-07-06BulletSim: non-functional updates. Comments and formatting.Robert Adams1-3/+11
Update TODO list.
2013-06-30BulletSim: add the reset of the last commit for flush log file problems.Robert Adams1-1/+1
Fix small typo in one log message.
2013-06-21BulletSim: move new linear deflection code to own routine.Robert Adams1-29/+35
Remove VehicleForwardVelocity changed storage since the value will be modified as movement is processed.
2013-06-20BulletSim: Implementation of Linear Deflection, it is a partial help for the ↵Vegaslon1-5/+33
vehicle tuning diffrence between Opensim and Second life. Signed-off-by: Robert Adams <Robert.Adams@intel.com>
2013-05-24BulletSim: add VehicleInertiaFactor to allow modifying inertia.Robert Adams1-1/+2
Another parameter for vehicle operation tuning. Default to <1,1,1> which means nothing is different under normal use.
2013-05-07Bulletsim: and the rotational friction.Vegaslon1-3/+5
Signed-off-by: Robert Adams <Robert.Adams@intel.com>
2013-05-07BulletSim: Another way to create vehicle framed friction.Vegaslon1-3/+5
Signed-off-by: Robert Adams <Robert.Adams@intel.com>
2013-05-06BulletSim: apply linear and angular friction in vehicle coordinatesRobert Adams1-6/+6
and not world coordinates.
2013-05-06BulletSim: remove friction calcuation from BSMotor and move linear andRobert Adams1-13/+31
angular friction computation into linear and angular movement code. The friction wasn't being applied properly. This will make it so vehicles don't drift as much and the drift is tunable by changing the friction timescales.
2013-05-06BulletSim: simplify parameter specification by reducing the number ofRobert Adams1-1/+1
specifications required for simple properties with defaults.
2013-05-03BulletSim: zero vehicle motion when changing vehicle type.Robert Adams1-3/+3
Rebuild compound linkset of any child in the linkset changes shape. Comments and better detailed logging messages.
2013-05-02BulletSim: Rebuild physical body if physical shape changes for mesh and hull.Robert Adams1-0/+1
Properly rebuilds collision caches. Release asset data fetched when building mesh or hulls.
2013-04-29BulletSim: remove trailing white space to make git happier. No functional ↵Robert Adams1-11/+11
changes.
2013-04-29BulletSim: rename variable 'PhysicsScene' to be either 'PhysScene' or ↵Robert Adams1-4/+4
'm_physicsScene' to match coding conventions and reduce confusion.
2013-04-29BulletSim: massive refactor of shape classes. Removed shape specific code ↵Robert Adams1-2/+2
from BSShapeCollection. Using BSShape* classes to hold references to shape. Simplified shape dependency callbacks. Remove 'PreferredShape' methods and have each class specify shape type. Disable compound shape linkset for a later commit that will simplify linkset implementation.
2013-04-09BulletSim: some formatting changes.Robert Adams1-10/+17
2013-04-09Another algorithm for AngularVerticalAttraction. This one Takes into account ↵Vegaslon1-0/+23
all rotations before it and makes the corrections more close to the time that sl does. Signed-off-by: Robert Adams <Robert.Adams@intel.com>
2013-03-31BulletSim: start the renaming of local variables to m_ form to match the ↵Robert Adams1-23/+23
OpenSim coding conventions.
2013-03-31BulletSim: convert BSDynamic to a BSActor and change BSPrim to setRobert Adams1-73/+126
up the vehicle actor.
2013-03-25BulletSim: new algorithm for vertical attraction which uses quaternionRobert Adams1-3/+45
arithmetic to compute the shortest path between the current tilt and vertical.
2013-03-19BulletSim: code to generate a higher resolution terrain mesh. ParameterRobert Adams1-2/+3
TerrainMeshMagnification controls number of vertices generated per heightmap point. Default is 3.
2013-03-16BulletSim: add INI parameter for angular banking timescale fudge parameter.Robert Adams1-6/+6
2013-03-16BulletSim: Working Implementation of Angular Banking for Vehicles (Not SL ↵Vegaslon1-16/+17
Grade, Other features when implemented should slow it down for now be Strong with Vertical Angular attraction setting and conservative with Angular Velocity on X axis) Signed-off-by: Robert Adams <Robert.Adams@intel.com>
2013-03-15BulletSim: Tweak vertical angular attraction to remove double ↵Vegaslon1-1/+1
VehicleOrientation application fixing the problem with the vertical attractor pushing vehicles nose first into ground when tilted on side. Signed-off-by: Robert Adams <Robert.Adams@intel.com>
2013-03-01BulletSim: add parameters, code cleanup around checking and enforcingRobert Adams1-2/+2
maximum velocity and angular velocity values for prims.
2013-02-17BulletSim: rework parameter setting for different types of valuesRobert Adams1-3/+3
(like vectors or quaternions).
2013-02-08BulletSim: include the linkage to the layered prim implementation. Separate ↵Robert Adams1-1/+1
layers for physical (vs simulator) location displacement and linksets.
2013-02-05BulletSim: correct angular vertical attraction to properly correct an upside ↵Robert Adams1-1/+1
down vehicle.
2013-01-31BulletSim: make sure vehicle physical properties are set when goingRobert Adams1-16/+14
physical by delaying setting until pre-step time. Change vehicle.Refresh() to schedule the pre-step setting. Comments and updating of TODO list.
2013-01-28BulletSim: enable angular vertical attraction.Robert Adams1-2/+2
Increase terrain collision margin to help vehicles from tunneling into same.
2013-01-28BulletSim: first unit test: vehicle angular attractionRobert Adams1-6/+6
2013-01-27BulletSim: simplify the initialization of some of the parameters.Robert Adams1-6/+13
Disable vertical attraction for vehicles by default (for the moment). Fix bug where vehicle would go crazy when velocity got above a certain speed.
2013-01-27BulletSim: parameterize the value for gravity reduction for ground vehicles ↵Robert Adams1-7/+8
on the ground. Set defaults for vehicle factors to one. Debug logging changes.
2013-01-27BulletSim: first attempt at reporting top collidersRobert Adams1-4/+6
2013-01-27BulletSim: parameterize several vehicle debugging values: physical linear ↵Robert Adams1-7/+5
and angular force factors now default to less than 1 (0.2) vehicle friction and restitution now default to low values
2013-01-27BulletSim: finish the post step event for physical object actions. Modify ↵Robert Adams1-3/+11
vehicle to use post step event for logging.
2013-01-24BulletSim: reduce the force of gravity on ground vehicles when theyRobert Adams1-0/+11
are on the ground. Makes them a little more stable.
2013-01-24BulletSim: reduce the zeroing threshold for rotational velocity.Robert Adams1-3/+1
Sometimes settling of a vehicle from gravity introduces small velocities that need to be kept.
2013-01-23BulletSim: remove setting of vehicle InterpolationRotationalVelocity.Robert Adams1-34/+32
This doesn't seem to help the vehicle stability. Rename vehicle internal variables adding a "V" or "W" so it is clear when coordinates are vehicle or world relative.
2013-01-21BulletSim: Tweeks to vehicle motion.Robert Adams1-13/+8
Pass through old angular velocity making for smoother transitions. Remove some old kludges for angular motion (damping and rotvel suppression).
2013-01-20BulletSim: More aggressive as setting character velocity to zeroRobert Adams1-72/+71
when should be standing. Modify angular force routines to be the same pattern as linear force routines. BulletSim vehicle turning is scaled like SL and is DIFFERENT THAN ODE!! Fix some bugs in BSMotor dealing with the motor going to zero. Add a bunch of parameters: MaxLinearVelocity, MaxAngularVelocity, MaxAddForceMagnitude, VehicleMaxLinearVelocity, VehicleMaxAngularVelocity, and most of the values are defaulted to values that are larger than in SL. Use the new parameters in BSPrim, BSCharacter and BSDynamic.
2013-01-20BulletSim: small fix making sure terrain height is calculatedRobert Adams1-1/+3
properly if the vehicle moves during vehicle actions.
2013-01-20BulletSim: modify motors to return correction rather than current valueRobert Adams1-27/+14
to better use them for incremental updates. Modify prim and character to use the new motors. Simplify the vehicle linear movement code to just update the velocity directly or the basic movement.
2013-01-17BulletSim: Add one function that all actors who act on the physicalRobert Adams1-1/+2
can use to know if the object is currently active. Code cleaning including use of Util.ClampV function.
2013-01-15BulletSim: don't modify angular parameters when doing LIMIT_MOTOR_UP.Robert Adams1-6/+6
It was a dumb idea to try and do a nose over feature for jumping cars anyway. Add better logging of native shape creation/reuse so can tell the difference.
2013-01-15BulletSim: tweeks to improve hover.Robert Adams1-5/+21
2013-01-15BulletSim: temporarily disable banking and direction deflectionRobert Adams1-8/+24
because the computations are wrong. Add VehicleTorqueImpulse routines.