Ryan Huffman
b75e053e9d
Add automatic CCD activation to the physics engine
2015-11-03 11:01:51 -08:00
Andrew Meadows
f652e983a9
flag kinematic objs when changed in stepSimulation()
2015-10-30 14:53:29 -07:00
Seth Alves
6f30a3c178
new method -- ObjectMotionState::getBodyLinearVelocityGTSigma
2015-10-19 13:56:30 -07:00
Seth Alves
113321184d
if model RegistrationPoint doesn't match entityItem's, update it
2015-10-19 12:21:26 -07:00
Seth Alves
ac99005602
reverting a change to try to see sticking problem again
2015-10-19 12:13:08 -07:00
Seth Alves
26dcaeb056
try another way of fixing held object snagging at slow velocity
2015-10-19 10:10:43 -07:00
Seth Alves
742e48b0c8
try another way of fixing held object snagging at slow velocity
2015-10-19 09:48:34 -07:00
Andrew Meadows
fa17b77d70
move DIRTY_FLAGS out of EntityItem namespace
2015-10-15 09:34:09 -07:00
Seth Alves
6db0442fda
allow for asynchronous building of collision shape
2015-08-21 10:48:26 -07:00
Andrew Meadows
55207a8fb1
enforce coding standards
2015-07-09 11:59:28 -07:00
Andrew Meadows
46bca30698
MotionState reports zero velocity for slow objects
...
This reduces the number of updates for an Entity that is effectively
at rest due to a balance between some spring action and gravity, but
nevertheless has a slight non-zero velocity at the end of each
simulation step.
2015-07-09 11:34:27 -07:00
Andrew Meadows
cf74dbe1dc
partial progress toward sim ownership negotiations
...
works well for just a few objects but fails for piles
committing some debug stuff that will have to be torn out later
2015-06-26 21:57:04 -07:00
Seth Alves
edb3622c85
Merge pull request #5037 from AndrewMeadows/inertia
...
collision groups for physical objects
2015-06-05 10:26:28 -07:00
Howard Stearns
5cbb5dadca
More perspicacious zero.
2015-06-04 14:21:12 -07:00
Andrew Meadows
b0ca2df3aa
move API from PhysicsEngine to ObjectMotionState
2015-06-03 14:56:04 -07:00
Howard Stearns
c036b5fd4b
Actually commit the changes this time!
2015-06-03 10:19:28 -07:00
Andrew Meadows
bf225e4886
fix bug masking physics shape changes
2015-05-22 11:33:45 -07:00
Andrew Meadows
0431e8da36
put avatar body in right spot, and give it mass
2015-05-22 11:08:56 -07:00
Andrew Meadows
67f5d0773d
some list management of AvatarMotionStates
2015-05-21 14:40:47 -07:00
Andrew Meadows
c631f85bf9
cleanup of simulation ownership/update logic
2015-05-14 08:43:54 -07:00
Andrew Meadows
326d17072e
merge seth/dice-on-table-1 into andrew/nova
2015-05-06 11:50:12 -07:00
Andrew Meadows
646661d037
update body gravity when proper dirty bits are set
2015-05-06 11:46:25 -07:00
Seth Alves
129a3a82da
clear incoming flags after adding an entity to simulation. If an entity has a shape-type of none, don't keep asking it for a shape
2015-05-06 11:20:39 -07:00
Andrew Meadows
2668ff6d0a
check for DIRTY_ROTATION bit when copying rotation
2015-05-05 15:34:50 -07:00
Andrew Meadows
aa5a59c3dc
merge upstream/master into andrew/nova
...
Conflicts:
libraries/entities/src/EntityItem.cpp
libraries/physics/src/PhysicsEngine.cpp
2015-05-05 10:24:17 -07:00
Atlante45
fc1519c078
Quiet compiler
2015-05-04 16:49:33 +02:00
Andrew Meadows
b023fe582a
make things compile
2015-05-01 10:44:50 -07:00
Andrew Meadows
4cb469dd79
cleanup how MotionStates are deleted from physics
...
also fixed some compile errors
removed cruft
2015-05-01 08:28:32 -07:00
Andrew Meadows
195dd1420c
DIRTY_PHYSICS_ACTIVATION not DIRTY_PHYSICS_NO_WAKE
...
also add separate flag for rotation
and separate flags for linear vs angular velocity
and some combined flag masks for convenience
2015-04-30 13:17:13 -07:00
Andrew Meadows
c3901939e6
make some things compile after reorganization
2015-04-30 13:02:18 -07:00
Andrew Meadows
31ab16ac62
move stuff into ObjectMotionState
2015-04-29 16:16:44 -07:00
Andrew Meadows
ab38572620
new PhysicsEngine API is mostly in place
...
doesn't compile, of course
large code movements are done
non-physical kinematics have been lost --
will readd in PhysicalEntitySimuation class
2015-04-29 09:48:02 -07:00
Andrew Meadows
e3d29d74af
name changes and preparation for more cleanup
2015-04-26 15:24:30 -07:00
Andrew Meadows
3ecf959b3e
removed cached copies of damping and restitution
2015-04-24 14:50:37 -07:00
Seth Alves
b3cb9fe9a4
fix comment some more
2015-04-17 15:33:41 -07:00
Seth Alves
dac57c44da
if measured acceleration is close to zero, send zero to entity server, else send gravity
2015-04-17 15:05:47 -07:00
Andrew Meadows
619d1ba191
rename to measureAcceleration
2015-04-16 14:09:33 -07:00
Andrew Meadows
b7ca69d4e1
fix typo
2015-04-16 13:46:26 -07:00
Andrew Meadows
5180e7e715
measure linear velocity of moving objects
2015-04-16 13:44:17 -07:00
Seth Alves
55bab2efd6
put physics into its own logging group
2015-04-06 18:09:45 -07:00
Andrew Meadows
58bb137c4d
bulletRotationStep --> computeBulletRotationStep
2015-01-27 17:37:12 -08:00
Andrew Meadows
23bd3f90d9
Bullet-style rotation integration for kinematics
...
and for dead reckoning after wire-transfer
2015-01-27 17:27:15 -08:00
Andrew Meadows
d1cf6559c5
merge upstream/master into andrew/isentropic
...
Conflicts:
libraries/physics/src/ObjectMotionState.cpp
2015-01-27 16:24:11 -08:00
Andrew Meadows
aebdd3b335
fix bad extrapolation of rapidly spinning objects
2015-01-27 15:53:37 -08:00
ZappoMan
f85774c687
adding some debugging
2015-01-26 09:45:33 -08:00
Andrew Meadows
d173afaa70
add support for non-physical kinematic movement
2015-01-23 11:01:46 -08:00
Andrew Meadows
86583f3f3f
physics collisions emit script collision events
2015-01-21 11:27:32 -08:00
Andrew Meadows
790d07d346
track known contacts and generate collision events
2015-01-20 14:18:10 -08:00
Andrew Meadows
549e3fac5f
store backpointer to MotionState in btRigidBody
2015-01-20 10:45:58 -08:00
Andrew Meadows
d5119b3532
merge upstream/master into andrew/bispinor
...
Conflicts:
libraries/entities/src/EntityItem.cpp
libraries/physics/src/EntityMotionState.h
libraries/physics/src/ObjectMotionState.cpp
libraries/physics/src/PhysicsEngine.cpp
libraries/physics/src/PhysicsEngine.h
2015-01-16 14:36:27 -08:00