Commit Graph

83 Commits

Author SHA1 Message Date
UbitUmarov
30586b34f6 replace Util.Clamp<T>() 2024-06-04 09:01:10 +01:00
UbitUmarov
75952d9bea cosmetics 2024-01-02 23:14:38 +00:00
UbitUmarov
ef1b5a8a61 remove obsolete add physics taint 2024-01-02 20:56:49 +00:00
UbitUmarov
8d5d985ba1 try fix bsparam setvalue for parameter type string 2023-05-31 20:44:42 +01:00
Robert Adams
1527d42823 BulletSim: some small changes to SetForce and SetTorque motors that don't seem to fix any problems. 2023-05-30 18:28:50 +00:00
Robert Adams
c90858576c BulletSim: osGetPhysicsEngineName() returns wrapper and engine version information
New BulletSim config parameters for setting defaults if legacy format is needed.
2023-05-26 01:47:56 +00:00
UbitUmarov
828d568d2f revert last commit, so some scripts may still work on other engines 2023-05-23 18:34:14 +01:00
UbitUmarov
265ea0b8a3 ExtendedPhysics module is specific to Bulletsim, can not be active with other engines, at least in current form 2023-05-23 18:17:22 +01:00
Robert Adams
cafbf1c977 Add physDisableDeactivation() LSL function to ExtendedPhysics.
Add implementation of physDisableDeactivation to BulletSim.
2023-05-23 16:41:22 +00:00
UbitUmarov
dc754b22d5 bullet low level seems to ignore MaxCollisionsPerFrame, in some cases. Thanks Beq Janus 2023-01-12 13:08:31 +00:00
UbitUmarov
a133a0c7ac change bullet to use dllmap 2022-11-24 10:55:42 +00:00
UbitUmarov
d9380c9b83 clean some spurius chars and a few other things. Thanks Vincent Sylvester 2022-11-12 02:49:01 +00:00
UbitUmarov
dea7b7b1a7 remove effect of avatar mass, so all jump similar height 2022-04-16 13:41:31 +01:00
UbitUmarov
1bf5ccedec need to process all mv flags for now 2022-04-16 03:30:46 +01:00
UbitUmarov
b8e0aaa7b3 scale bullet avatar jump to more or less match ubOde 2022-04-16 02:51:25 +01:00
UbitUmarov
6d701b6759 add AvatarJump to phsycis engines. This is just a push in Z direction, Still needs scaling so engines to match. This new scaling is needed so does not impact old push ones 2022-04-15 21:47:38 +01:00
UbitUmarov
846d2df245 replace util.clip by utils.clamp (from libomv), and a few more cosmetics 2022-03-18 02:20:40 +00:00
UbitUmarov
5728d634b5 cosmetics 2022-03-14 21:12:53 +00:00
UbitUmarov
3dcb77c7b7 more source indentation fix 2022-03-14 18:50:53 +00:00
UbitUmarov
3631018a7e more source indentation fix 2022-03-14 18:43:13 +00:00
UbitUmarov
9b85bbd69a look more tabs ans things.. 2022-03-13 13:32:51 +00:00
Vincent Sylvester
13dbbc2683 Remove tabs, indent code properly
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
2022-03-13 13:15:05 +00:00
UbitUmarov
e043d8a2eb use array.Empty<byte> 2022-03-12 15:21:24 +00:00
UbitUmarov
ee0d6b4507 Invalid physics meshing option is a fatal error 2021-12-02 18:13:47 +00:00
Robert Adams
87c81b5172 BulletSim: Add delay to stationary check after adding force to Avatar.
Fix to Mantis 8496.
Add parameter [BulletSim] AvatarAddForceFrames.
2019-03-06 10:29:46 -08:00
Robert Adams
52947b6280 Remove some more cut-and-paste typos in 6dof constraint setup in XNA
version of BulletSim. Could only effect operation of flexible linksets when
using the C# version of the Bullet physics engine.
Found by Tampa and AliciaRaven and reported in Mantis 7612.
2019-02-05 08:35:27 -08:00
Robert Adams
a1568697d0 Remove cut-and-paste typo in 6dof contstrain setup in XNA version of
BulletSim. Could only effect operation of flexible linksets when using
the C# version of the Bullet physics engine.
Found by Tampa and reported in Mantis 7612.
2019-02-05 08:07:22 -08:00
UbitUmarov
4a73cc81dc now break several things at same time... sog/sop updates, threads options,... 2018-12-28 13:52:59 +00:00
UbitUmarov
d43eeb1d9d avoid a null ref on Bullet 2018-11-15 22:17:44 +00:00
UbitUmarov
cf33e0440a reduce some threads priority 2018-10-28 14:43:14 +00:00
UbitUmarov
495b22470d oops some code got in ahead of time 2018-10-21 12:41:28 +01:00
UbitUmarov
0986555765 mantis 8387: (try) avoid potencial out of order phys operations 2018-10-21 12:13:21 +01:00
UbitUmarov
1bcdcc2419 mantis 8384: try to fix bullet heimap managed memory sharing with unmanaged lib 2018-10-03 21:17:23 +01:00
UbitUmarov
c92ba1cc04 shut up some pesty warnings 2018-01-15 16:23:19 +00:00
Robert Adams
df3759e099 BulletSim: Add parameter "[BulletSim]AvatarWalkVelocityFactor=1.0" to
adjust the walking speed passed from the simulator. Default is 1.0f so
there should be no change for regions who do not change the factor.

The adjustment for walking speed and AlwaysRun speed should be in the
simulator and not the physics engines (who all assume TargetVelocity.set
is only used for avatar walking/running) but that would require tweaking
all the phyiscs engines.
2017-10-13 12:00:07 -07:00
Robert Adams
4608b44817 BulletSim: add raycast filtering 2017-09-05 06:19:49 -07:00
Robert Adams
f348f7fa90 BulletSim: first version of raycast. Only single contact point and no
filtering.
2017-09-03 17:15:27 -07:00
Robert Adams
33e773959f BulletSim: modify taint processing which use locks.
(Merge branch 'bullettaint' into bulletcast)
2017-09-02 13:08:54 -07:00
Robert Adams
0afa3a294a BulletSim: most of the plumbing for raycast. Needs new BulletSim.dll to
work.
2017-09-02 13:06:36 -07:00
Robert Adams
5c36561424 BulletSim: add clock and change logic for taint processing a little
so taints check if they are not in simulation time and execute
immediately if not.
2017-08-28 15:23:32 -07:00
Robert Adams
9e86721d70 BulletSim: remove chatty debug message. 2017-08-14 21:33:26 -07:00
Robert Adams
36ee8e3941 BUlletSim: return better terrain height in
BSTerrainHeightMap.GetTerrainHeightAtXYZ().
Partial fix for Mantis 8011. Problem is that computed terrain height
is different than mesh height in the physics engine. For small shapes,
they would have their position corrected to above terrain so they would
never collide.
2017-08-14 21:20:59 -07:00
Melanie Thielker
b16abc8166 Massive tab and trailing space cleanup 2017-01-05 19:07:37 +00:00
Robert Adams
e13ff5a392 BulletSim: update avatar velocity setting to the new TargetVelocity pattern.
Now PhysicsActor.Velocity.set and PhysicsActor.SetMomentum do the same thing
   of setting the instantanious avatar velocity. PhysicsActor.TargetVelocity
   sets a velocity target and the movement motor is used to accelerate the'
   avatar to that velocity.
2016-11-13 11:19:54 -08:00
Robert Adams
e13fecfd3d BulletSim: zero velocity target when setting velocity through the
SetMomentum method.
2016-10-03 20:47:30 -07:00
Robert Adams
c7e4b14a26 BulletSim: fix problem with avatar velocity going to zero when flying across
region boundries.
Move code for Velocity, ForceVelocity and SetMomentum to BSPhysObject and
   have both BSPrim and BSCharacter share the code.
2016-09-30 19:35:44 -07:00
UbitUmarov
6c6a965320 remove some MegaRegions code from physics 2016-09-01 16:15:51 +01:00
UbitUmarov
e60dc305a4 change bullet relative velocity sign to match ubOde 2016-07-25 01:07:19 +01:00
UbitUmarov
259824fbc4 add EngineName also to the others 2016-07-04 09:13:20 +01:00
Melanie Thielker
28fb722612 CR safari. Remove gratuitious CRs in some files 2016-04-07 19:53:56 +02:00