Andrew Meadows
87223946ad
add/remove avatars according to workload region
2018-08-23 12:59:28 -07:00
John Conklin II
e6c81cdfba
Merge pull request #13833 from sabrina-shanman/stt_performance
...
Performance improvements for Collision Pick API
2018-08-20 17:34:46 -07:00
Andrew Meadows
3068865a6c
fix MyAvatar collision bug at transitions b/w meshes
2018-08-20 11:42:28 -07:00
sabrina-shanman
74f482b361
Revert "Convert entityIntersections/avatarIntersections lists in"
...
This reverts commit aa4a6b2eae
.
2018-08-20 10:15:28 -07:00
sabrina-shanman
2933038d04
Rename PhysicsEngine::getCollidingInRegion to contactTest and change it to accept collision flags instead of a MotionState enum
2018-08-17 14:22:42 -07:00
sabrina-shanman
aa4a6b2eae
Convert entityIntersections/avatarIntersections lists in
...
CollisionPickResult to shared pointers
2018-08-16 08:59:29 -07:00
sabrina-shanman
61d12923ea
Do not copy list of collision pick contact points when filtering them
2018-08-15 11:12:50 -07:00
sabrina-shanman
83ededfd37
Pass collision filter flags into AllContactsCallback for more efficient collision filtering
2018-08-15 11:12:50 -07:00
sabrina-shanman
2576d502ab
Remove unused getter for btCollisionWorld in PhysicsEngine
2018-08-13 17:27:57 -07:00
sabrina-shanman
e5cb078133
Merge branch 'master' of github.com:highfidelity/hifi into safe-teleport-target
2018-08-13 14:51:37 -07:00
sabrina-shanman
ad36e23c34
Return early when colliding MyAvatar is found in AllContactsCallback
2018-08-09 17:00:54 -07:00
sabrina-shanman
6249d1c3aa
Initialize btCollisionWorld::ContactResultCallback BEFORE AllContactsCallback variables
2018-08-08 10:32:26 -07:00
Andrew Meadows
49a1d0a18a
MyAvatar RigidBody ignores backfacing triangles
2018-08-08 09:11:09 -07:00
sabrina-shanman
4ffe164569
Address Mac/Linux build warnings
2018-08-08 08:56:35 -07:00
sabrina-shanman
870940b3a0
Merge branch 'master' into safe-teleport-target
2018-08-03 18:14:43 -07:00
sabrina-shanman
b7d5804edb
Format if..else statements
2018-08-03 12:55:11 -07:00
sabrina-shanman
0b40608650
Fix collision picks not working with MyAvatar
2018-08-03 12:05:58 -07:00
Andrew Meadows
bd6f00e707
eliminate angular dynamics of other-avatars
2018-08-01 11:58:52 -07:00
Andrew Meadows
c939699879
ignore other-avatar angularVelocity in physics simulation
2018-08-01 11:22:58 -07:00
sabrina-shanman
de7d974336
Re-name EntityIntersection to ContactTestResult and remove its default constructor, plus update related variables
2018-07-30 16:45:31 -07:00
sabrina-shanman
41a8deb575
Fix Linux build warnings
2018-07-30 14:51:04 -07:00
John Conklin II
df917688b6
Merge pull request #13707 from AndrewMeadows/fix-ccd
...
more correct continuous collision detection for thin objects
2018-07-27 14:32:41 -07:00
Andrew Meadows
cf04a91a83
use smaller CCD spheres for thin objects
2018-07-27 09:02:19 -07:00
sabrina-shanman
8f993e4740
Change meaning/naming of collision points in CollisionPick API to better match spec and be more clear
2018-07-25 11:45:13 -07:00
sabrina-shanman
5ec277e458
Move bullet references in collision pick API to PhysicsEngine
2018-07-24 15:47:49 -07:00
sabrina-shanman
f33ee55f9e
Create CollisionPick API
2018-07-19 10:33:21 -07:00
Andrew Meadows
207aea8712
remove cruft from rendering collision shapes
2018-07-16 10:29:34 -07:00
John Conklin II
8669b529dc
Merge pull request #13592 from luiscuenca/blueScreenFix
...
Fix blue screen in VR mode due to NaN values
2018-07-13 09:12:47 -07:00
luiscuenca
45f8ed010c
formatting
2018-07-12 16:03:15 -07:00
luiscuenca
1ab6c7a8ac
Proper fix
2018-07-12 14:00:55 -07:00
luiscuenca
ced4e1e0e0
Fix blue screen after player step returns NaN values
2018-07-11 18:02:19 -07:00
Andrew Meadows
8ea18e3359
integrate active kinematic even when grabbed
2018-07-10 11:20:18 -07:00
Andrew Meadows
9171fcbe8b
explicit insert/erase into _simpleKinematicEntities
2018-07-10 11:17:13 -07:00
John Conklin II
1bd698a5dc
Merge pull request #13558 from danteruiz/fix-falling-through-floor
...
Fix falling through floor
2018-07-06 13:44:08 -07:00
Dante Ruiz
fdf58ab2b5
fixing edge case
2018-07-06 11:09:59 -07:00
Dante Ruiz
3cc54c5118
another round of small adjustments
2018-07-06 09:11:42 -07:00
Dante Ruiz
6d8fe870e4
some clean up
2018-07-06 09:00:00 -07:00
Dante Ruiz
533164e1e4
some more fixes
2018-07-06 08:55:20 -07:00
Dante Ruiz
09627dd3d9
first pass on trying to fix falling through floor
2018-07-06 08:28:43 -07:00
luiscuenca
b2e02e20cc
Fix inaccurate delta rotation axis
2018-07-05 11:47:10 -07:00
Andrew Meadows
ff6c309d8b
add comment
2018-07-02 15:20:51 -07:00
Andrew Meadows
9c32a38fb6
fix deactivation slow-spinning kinematics
2018-07-02 15:04:11 -07:00
Andrew Meadows
5e2a08b3c2
handle deactivation of avatar entities differently
2018-06-25 10:37:54 -07:00
Sam Gondelman
850e2d5cf5
Merge branch 'master' into particleFix
2018-06-21 17:32:24 -07:00
John Conklin II
4088035b3b
Merge pull request #13411 from sabrina-shanman/crash-delete-cube
...
Fix crash when deleting objects in serverless mode
2018-06-21 14:39:07 -07:00
SamGondelman
8f411ad6c8
CR
2018-06-20 16:13:10 -07:00
sabrina-shanman
59833d8f28
Do not use boolean for variable definitions. Use bool instead.
2018-06-20 15:54:19 -07:00
Andrew Meadows
4424a8df11
Merge pull request #13303 from highfidelity/workload
...
workload project part 1
2018-06-20 15:39:01 -07:00
sabrina-shanman
c039d20304
Fix objects snapping back when selected
2018-06-20 13:55:38 -07:00
Andrew Meadows
44c3620b6e
remove cruft
2018-06-18 17:45:58 -07:00
sabrina-shanman
67c605c10a
Do not use ownership tracking in serverless mode in PhysicalEntitySimulation
2018-06-18 16:12:38 -07:00
John Conklin II
9ace80c709
Merge pull request #13407 from AndrewMeadows/0.69.0-colliding-avatars
...
RC69: avatars collide again (again)
2018-06-18 15:21:47 -07:00
Andrew Meadows
a18ba36dd2
merge 'master' into 'workload'
2018-06-18 13:40:08 -07:00
Andrew Meadows
085130e3c9
avatars collide again again
2018-06-18 13:17:32 -07:00
Andrew Meadows
6d422e4678
Merge 'master' into 'workload'
2018-06-18 10:30:13 -07:00
John Conklin II
87d26a9d86
Merge pull request #13304 from sabrina-shanman/btghostraytest
...
Use optimized Bullet raytest function in CharacterGhostObject::rayTest()
2018-06-18 10:22:17 -07:00
Andrew Meadows
670e07bbf5
fix crash for computing inertia for btBvhTriangleMeshShape
2018-06-15 14:31:51 -07:00
Andrew Meadows
93ac70ead4
avoid crash in inertia calculation of btBvhTriangleMeshShape
2018-06-15 10:28:12 -07:00
sabrina-shanman
baf0df05cd
Remove unnecessary 'this->' in rayTest parent function call
2018-06-14 13:16:46 -07:00
Clement
920263ef49
Merge branch 'stable' of https://github.com/highfidelity/hifi into new-master
2018-06-12 17:00:25 -07:00
Andrew Meadows
d31ee52d79
revert PR-13162 from RC68
2018-06-12 03:51:55 -07:00
sabrina-shanman
d4d8f36e44
Change CharacterGhostObject to use base btGhostObject class instead of btPairCachingGhostObject
2018-06-11 15:40:39 -07:00
Seth Alves
a2399ea1f6
keep small masses from introducing NaN into bullet's calculations
2018-06-08 16:07:01 -07:00
sabrina-shanman
9ac1443b83
Use optimized Bullet raytest function in CharacterGhostObject::rayTest()
2018-06-05 11:17:17 -07:00
Andrew Meadows
4329ea5240
Merge master' into 'workload'
2018-06-04 16:11:25 -07:00
Andrew Meadows
db3520b332
also update queryAACube for 'Held' things
2018-06-01 16:38:57 -07:00
Andrew Meadows
7e44b9b3ae
motionState needs correct region when adding to physics
2018-05-31 10:23:49 -07:00
Andrew Meadows
62df4999ef
declare method const
2018-05-31 10:22:22 -07:00
Andrew Meadows
c2f5d19ddb
add TODO about optimizing character ray tracing
2018-05-31 10:21:14 -07:00
Andrew Meadows
003e444246
Merge branch 'master' into 'workload'
2018-05-30 16:04:13 -07:00
Andrew Meadows
bc57003cfb
activate body before disconnecting action from entity
2018-05-29 17:56:41 -07:00
Andrew Meadows
5d3502ed88
activate body when removing action
2018-05-29 17:56:41 -07:00
Andrew Meadows
1612d90cd3
minor DynamicsWorld optimizations and track global steps count therein
2018-05-25 08:31:09 -07:00
Andrew Meadows
ed62a2fc37
_lastKinematicStep now mutable, avoids explicit const_cast
2018-05-25 08:31:09 -07:00
samcake
559d436dfa
Fixing the merge conflicts
2018-05-24 16:57:10 -07:00
Andrew Meadows
31dd59d212
double bits in collision groups
2018-05-24 11:28:52 -07:00
Andrew Meadows
84a2e5e443
fix yeild behavior for owned things outside of R1
2018-05-18 11:23:56 -07:00
Andrew Meadows
a9c193b672
merge 'workload-014' into 'workload'
2018-05-18 10:12:04 -07:00
Andrew Meadows
a23126a6b2
Merge 'master' into 'workload'
2018-05-18 07:38:02 -07:00
Andrew Meadows
00e360aff0
reduce sim ownership priority when releasing grab
2018-05-17 17:25:07 -07:00
Andrew Meadows
2cf6e9007b
remove unsused data member
2018-05-16 13:57:51 -07:00
Sam Gateau
523d57d948
Merge pull request #13162 from AndrewMeadows/avatar-collisions
...
avatars collide again
2018-05-16 09:25:05 -07:00
Andrew Meadows
c7c4324b3c
Merge 'master' into 'workload'
2018-05-15 10:22:50 -07:00
John Conklin II
c57b0a957d
Merge pull request #13138 from AndrewMeadows/avoid-div-by-zero
...
avoid div by zero when measuring RigidBody effective acceleration
2018-05-14 13:41:08 -07:00
Andrew Meadows
6de175e794
avatars collide again
2018-05-11 17:01:48 -07:00
Seth Alves
85a6e2555f
don't assert when unserializing a 'spring' action
2018-05-11 13:55:29 -07:00
John Conklin II
4129664368
Merge pull request #13145 from highfidelity/stable
...
Merge RC67 stable into master
2018-05-10 17:07:20 -07:00
Andrew Meadows
b8d34f4b8f
more correct variable name
2018-05-09 12:13:27 -07:00
Andrew Meadows
f454dac709
avoid div by zero when measuring acceleration
2018-05-09 12:04:44 -07:00
Seth Alves
db03265a6b
when in serverless mode, short-circuit simulation ownership bids
2018-05-09 10:53:46 -07:00
Clement
da9fb9c751
Fix non self-sufficient headers
2018-05-04 16:26:41 -07:00
Andrew Meadows
b1fcb43246
send ownership removal packet when dynamic object leaves bullet
2018-05-03 16:23:13 -07:00
Andrew Meadows
99a75c5a87
Merge 'master' into 'workload'
2018-05-02 17:28:36 -07:00
Anthony J. Thibault
4fa9af5534
Added items to the developer menu for debugging physics
...
Hooked up Bullet's internal debug draw functionality to our client.
Under the Developer > Physics Menu there are five new items:
* Show Bullet Collision - will draw all collision shapes in wireframe. WARNING: can be slow on large scenes.
* Show Bullet Bounding Boxes - will draw axis aligned bounding boxes around all physics shapes.
* Show Bullet Contact Points - will draw all contact points where two or more objects are colliding.
* Show Bullet Constraints - will render wire frame axes for each constraint connecting bodies together.
* Show Bullet Constraint Limits - will render the joint limits for each constraint.
2018-05-02 10:51:00 -07:00
Sam Gateau
22e5465767
Merge pull request #13013 from AndrewMeadows/avoid-update-flood
...
fix bug: interface sends too many updates on settle
2018-05-02 08:52:58 -07:00
Andrew Meadows
003ea5ae36
remove unused crufty debug variable
2018-05-01 13:15:37 -07:00
Andrew Meadows
26db9ec09e
yield ownership outside workload R1
2018-05-01 13:15:37 -07:00
samcake
b3408ae4c0
Merge branch 'master' of https://github.com/highfidelity/hifi into upstream-workload
2018-05-01 11:39:54 -07:00
Seth Alves
f1e1c6a348
fix physics related crash-on-exit
2018-05-01 09:15:44 -07:00
Andrew Meadows
03e03727db
fix bug: interface sends too many updates on settle
2018-04-26 12:55:28 -07:00
samcake
5b5cad38e8
Merge branch 'master' of https://github.com/highfidelity/hifi into workload
2018-04-25 10:03:42 -07:00
Andrew Meadows
ae186d46c6
don't try to build convex hulls with nan data
2018-04-23 14:46:23 -07:00
samcake
b554aec317
Trying more drastic changes and learnign to use std::chrono the right way
2018-04-20 17:53:24 -07:00
samcake
9b1a887469
Starting to move dynamically yeah
2018-04-19 17:43:14 -07:00
samcake
a6bd589f4f
Merging upstream
2018-04-19 12:20:10 -07:00
Stephen Birarda
c4ad93bafb
Merge pull request #12782 from SimonWalton-HiFi/qregexp
...
Replace LogHandler repeated regex scheme with assigned ID tracking scheme
2018-04-18 17:28:48 -07:00
John Conklin II
87f60e1e25
Merge pull request #12894 from sethalves/fix-tractor-action-crazy
...
fix bug that caused tractor action to go crazy
2018-04-18 14:13:56 -07:00
Andrew Meadows
4d3109b849
cleanup some comments
2018-04-16 13:31:36 -07:00
Andrew Meadows
ace32193b4
more correct stat names
2018-04-16 13:31:36 -07:00
Seth Alves
22fd4a7116
fix bug that caused tractor action to go crazy if only one of the two entities it connected were known to interface
2018-04-14 12:27:58 -07:00
Andrew Meadows
060c391d47
more correct stat names
2018-04-12 14:23:48 -07:00
samcake
e2f9eef5e2
Merge branch 'master' of https://github.com/highfidelity/hifi into workload
2018-04-12 12:27:27 -07:00
John Conklin II
e47dca77ec
Merge pull request #12773 from AndrewMeadows/expire-simulation-ownership
...
entity-server will expire stale simulation ownership
2018-04-12 12:04:52 -07:00
Sam Gateau
6a7ae55d9c
Merge branch 'master' of https://github.com/highfidelity/hifi into workload
2018-04-11 19:08:57 -07:00
Andrew Meadows
a0f3e3a031
add simulation ownership expiry
2018-04-11 09:40:32 -07:00
SamGondelman
8f65813924
fix asserts on domain switch
2018-04-09 17:10:49 -07:00
samcake
694baa81e8
removing logging around physics
2018-04-06 16:12:02 -07:00
Andrew Meadows
2cfb835b56
only add to physics simulation that when necessary
2018-04-06 15:26:33 -07:00
Andrew Meadows
ed1761945c
add/remove entities to physics using workload output
2018-04-06 07:22:05 -07:00
Simon Walton
ed3347a89b
Repeated logging - reviewer fixes
2018-04-04 14:11:10 -07:00
Simon Walton
692ccfc09b
Create HIFI_FCDEBUG(_ID) variants that require a category
...
Original macros use default settings.
2018-04-04 09:49:15 -07:00
Andrew Meadows
f0fcfc432c
fix typo in comment
2018-04-03 22:16:10 -07:00
Andrew Meadows
6d7574cab9
use std::numeric_limtis<uint64_t>::max() instead of -1
2018-04-03 22:13:25 -07:00
Andrew Meadows
70d6aa99e8
more 'const uint64_t&' purges
2018-04-03 21:55:31 -07:00
Andrew Meadows
bd2bfb6807
DRY: simpler removal of element from middle of std::vector
2018-04-03 18:28:07 -07:00
Andrew Meadows
0a2b4a8d1d
add comment about returning smart pointer by ref
2018-04-03 18:26:43 -07:00
Simon Walton
7d16ca9c1c
Remove uses of addRepeatedMessageRegex() and its implementation
...
Change to new log-message ID scheme.
2018-04-03 17:54:01 -07:00
Andrew Meadows
59abc1d5b5
DRY sendBid() and sendUpdate()
2018-03-30 17:04:31 -07:00
Andrew Meadows
766077204e
fix typo inside assert()
2018-03-30 16:35:16 -07:00
Andrew Meadows
a924bd4eb0
set correct _bidPriority on first ownership update
2018-03-30 13:18:32 -07:00
Andrew Meadows
5a5376c3d5
untangle 'bidding' from 'owned'
2018-03-30 13:18:32 -07:00
Andrew Meadows
170ec83870
remove unnecessary assert
2018-03-30 13:18:32 -07:00
Andrew Meadows
eb07f6732f
add reminder comment
2018-03-30 13:18:32 -07:00
Andrew Meadows
49dce6fa1a
remove some redundancy checks
...
no need to assert(_entity) : guaranteed by ctor and dtor logic
moved some checks around to avoid redundant work
2018-03-30 13:18:32 -07:00
Andrew Meadows
4e0f307dc0
quint8 --> uint8_t
2018-03-30 13:18:32 -07:00
Andrew Meadows
2be0f0fa22
better comments
2018-03-30 13:18:32 -07:00
Andrew Meadows
c61a226bb5
delete default EntityMotionState ctor
2018-03-30 13:18:32 -07:00
Andrew Meadows
73fa6d3d2f
slightly simpler EntityMotionState delete logic
2018-03-30 13:18:32 -07:00
Andrew Meadows
6746e08206
faster EntitySimulation::takeDeadEntities()
2018-03-30 13:18:32 -07:00
Andrew Meadows
e1d2a5e5f3
more cleanup for deleting entities
2018-03-30 13:18:32 -07:00
Andrew Meadows
0596497930
more correct comments
2018-03-30 13:18:32 -07:00
Andrew Meadows
6837d042ad
move entityCollisionWithEntity to PhysicalEntitySimulation
2018-03-30 13:18:32 -07:00
MiladNazeri
e054f16c46
Merge pull request #12526 from ctrlaltdavid/21709
...
Entities API JSDoc
2018-03-12 14:40:09 -07:00
NissimHadar
9b9b62d0e4
Transition to hover if falling and height above ground is greater than the threshold.
2018-03-09 15:20:51 -08:00
David Rowe
1fb02d15d7
Entities actions JSDoc
2018-02-27 14:12:20 +13:00
Andrew Meadows
672520f3bf
quickfix for velocity spike for Tractor action
2018-02-06 12:06:27 -08:00
Seth Alves
639f7a52d8
remove unneeded/repeated line
2018-02-02 18:24:38 -08:00
Andrew Meadows
83ab994181
avoid initial bad measure of tractor target's velocity
2018-02-02 16:42:51 -08:00
Andrew Meadows
75b5635d2f
less word salad
2018-01-18 17:43:22 -08:00
Andrew Meadows
3d3bfcf7a3
check dirty flags when harvesting physics results
2018-01-18 17:43:22 -08:00