Seth Alves
2a06816f71
added persist-as-json checkbox to domain settings. File extension of persist file is automatically adjusted when entity server saves. When loading, if both a json and svo file exist, the newer one is used. This is regardless of the persistAsJson setting
2015-03-11 23:09:15 -07:00
Seth Alves
bf1cb951a3
move PhysicsEntity so that ModelEntityItem can initiate a model download
2015-03-11 18:34:27 -07:00
Seth Alves
918cfa8b4e
Merge branch 'master' of github.com:highfidelity/hifi into persist-entities-as-json
2015-03-11 14:36:25 -07:00
Seth Alves
3a3e723f4e
trying to figureo out where to download hull models
2015-03-11 14:26:30 -07:00
Seth Alves
20a22ff42c
Merge branch 'master' of github.com:highfidelity/hifi into avatars-can-collide
2015-03-11 07:17:19 -07:00
Seth Alves
1c73f50dbc
started to hook up geometry downloader to ShapeInfo
2015-03-11 07:17:13 -07:00
Seth Alves
844085b514
started on hull collisions
2015-03-10 15:30:08 -07:00
Andrew Meadows
503afc8c73
erase deleted entities from pending sort list
2015-03-10 14:26:19 -07:00
Seth Alves
291f239727
if we read an entity with no id, create a random one for it
2015-03-10 11:55:20 -07:00
Seth Alves
088e23ad54
saving and loading largely works. still some rough edges
2015-03-10 11:31:48 -07:00
Seth Alves
afd2c87dfe
Merge branch 'master' of github.com:highfidelity/hifi into persist-entities-as-json
2015-03-10 10:12:43 -07:00
Seth Alves
2076de9153
started on reading entities from json file
2015-03-10 10:12:29 -07:00
Seth Alves
d0bbac2eb6
json writer sort of works. started on reader
2015-03-09 17:55:58 -07:00
Seth Alves
c947f3b62c
use meters in wire-protocol for versions greater than VERSION_ENTITIES_USE_METERS_AND_RADIANS
2015-03-09 14:06:59 -07:00
Seth Alves
99300a5bc8
merge from master
2015-03-09 13:39:51 -07:00
Seth Alves
81dc7cb8cf
started on code to persist entities to file as json rather than in the wire protocol
2015-03-09 13:38:18 -07:00
Andrew Meadows
e418872f7b
namechanges: setFooInMeters() --> setFoo()
...
also fixed some warnings, made code abide to standard,
and moved some variables to be closer to where they're used
2015-03-09 09:56:15 -07:00
Andrew Meadows
51d05cc43e
merge upstream/master into andrew/isentropic
...
Conflicts:
libraries/networking/src/PacketHeaders.cpp
2015-03-09 08:51:49 -07:00
Seth Alves
08c3fa6363
merge from upstream
2015-03-08 17:29:05 -07:00
Jason
0fd9540bc3
Sync to upstream
...
Did "fetch upstream", "merge upstream/master", and resolved one
conflict.
2015-03-07 21:40:06 -08:00
Seth Alves
96d94e1b09
collision model url
2015-03-07 20:31:04 -08:00
Seth Alves
58bd8a5c65
collision model url
2015-03-07 20:30:29 -08:00
Seth Alves
bcfd1d8a89
collisionModelURL property
2015-03-07 20:27:20 -08:00
Seth Alves
630b5dd03b
collisionModelURL property
2015-03-07 20:27:02 -08:00
Andrew Meadows
ba6e66f169
merge upstream/master into andrew/isentropic
2015-03-07 18:03:49 -08:00
Seth Alves
b96e455b72
uninitialized variable
2015-03-07 11:27:27 -08:00
Andrew Meadows
f5352333f0
entities use radians per second for angular velocity
2015-03-06 16:42:06 -08:00
Jason
7a5669f14e
Interview project updates.
...
Tried to address all of Brad's notes, most of which were related to
matching the coding style for the project. Also used GeometryCache
instead of making direct calls to OpenGL to do drawing, took a different
approach to seeding rand(), updated the packet version, and fixed a bug
that I noticed in the setting of the dimensions for the particle effect
entity.
2015-03-06 15:52:21 -08:00
Andrew Meadows
95c7bcb5f8
whoops -- remove last *InTreeUnits() calls
2015-03-06 15:34:35 -08:00
Andrew Meadows
c4dafc74ad
whoops, remove last bestFitBoundsInMeters() call
2015-03-06 15:33:15 -08:00
Andrew Meadows
373be95297
entity cubes are in meters
2015-03-06 15:32:03 -08:00
Andrew Meadows
e4c68bf31c
committing some temp debug stuff to help git diff
...
(will remove this stuff later)
2015-03-05 18:06:08 -08:00
Ryan Huffman
2c68d56059
Update Entity::sendEntities to return new entity ids
2015-03-05 12:34:05 -08:00
Andrew Meadows
49eee89c19
merge upstream/master into andrew/isentropic
...
Conflicts:
libraries/networking/src/PacketHeaders.cpp
libraries/networking/src/PacketHeaders.h
2015-03-05 08:22:02 -08:00
Andrew Meadows
59a70b5b5f
remove cruft and fix default entity dimensions
2015-03-04 17:32:46 -08:00
ZappoMan
e99ffb8307
fix bug in export
2015-03-04 16:29:34 -08:00
Andrew Meadows
d7d25a6509
Octree::findCapsulePenetration() uses meters
2015-03-04 16:16:49 -08:00
Jason
3522357c8c
High Fidelity interview project -- Jason Rickwald
...
For my project, I decided to add a new entity -- a Particle Effect.
This is really rudimentary to start out with, but you could see where
it's headed.
2015-03-04 16:06:06 -08:00
Andrew Meadows
ca1c9b4105
EntityItem::findEntities() uses meters
2015-03-04 16:05:29 -08:00
Andrew Meadows
b9cbd1ea6e
witch internal EntityItem data to use meters
2015-03-04 09:38:37 -08:00
Ryan Huffman
b370e025c9
Move EntityScriptingInterface instance to DependencyManager
2015-03-02 15:05:31 -08:00
Ryan Huffman
98e0f235cc
Merge branch 'master' of git://github.com/highfidelity/hifi into block-restricted-users
2015-03-02 14:47:26 -08:00
Ryan Huffman
9a302eebed
Add Entities.canAdjustLocksChanged
2015-03-02 10:40:29 -08:00
Ryan Huffman
1a3eb68e2d
Update lightEntityItem old version handling to be more clear
2015-03-02 09:25:18 -08:00
Andrew Meadows
90b69b1ee0
replace some "InDomainUnits" calls with "InMeters"
2015-03-01 15:58:10 -08:00
Andrew Meadows
c2e78931c6
revert namechange: use compiler find all instances
2015-03-01 15:21:01 -08:00
Andrew Meadows
e1954d3e1d
spherical queries into Octree use meters
2015-03-01 15:19:26 -08:00
Ryan Huffman
84691f922c
Remove old light color properties
2015-02-27 14:04:56 -08:00
Ryan Huffman
61bc32493f
Fix entity version name in LightEntityItem
2015-02-27 13:49:17 -08:00
Ryan Huffman
093e5db90d
Update entity light properties to use new model
...
Rename constantAttenuation -> intensity
Rename diffuseColor -> color
Remove remaining attenuation and colors
2015-02-27 13:42:56 -08:00
Andrew Meadows
7836bb4dcd
rayIntersection uses meters instead of tree units
2015-02-26 17:42:17 -08:00
Andrew Meadows
64c28fe925
remove EntityItem::getSize()
2015-02-26 15:36:59 -08:00
Andrew Meadows
7210c7a88b
added EntityTree::findEntitiesInMeters()
...
progress toward conversion to meters
2015-02-26 15:16:59 -08:00
Andrew Meadows
93c77d557a
EntityTree::findClosestEntity() now takes meters
2015-02-26 14:14:17 -08:00
Andrew Meadows
8d4ea143ce
easy conversions of: InDomainUnits --> InMeters
2015-02-25 14:48:06 -08:00
Andrew Meadows
2f749e3c51
merge upstream/master into andrew/isentropic
...
Conflicts:
libraries/entities/src/TextEntityItem.h
2015-02-25 14:40:32 -08:00
Andrew Meadows
2ffb19a0ed
getPosition() --> getPositionInDomainUnits()
...
and friends
2015-02-25 14:35:04 -08:00
Andrew Meadows
0456cb298f
lower threshold for ignoring rotation updates
...
one hundred fold smaller
2015-02-24 17:16:00 -08:00
Andrew Meadows
3cd0a70641
store shapeType whenever it is explicitly changed
2015-02-23 14:35:44 -08:00
Andrew Meadows
2e1c122915
moved ShapeType boilerplate stuff macos
2015-02-23 11:38:56 -08:00
Andrew Meadows
0fc4c732f7
use macro for copying shapeType string to script
2015-02-23 10:13:47 -08:00
Andrew Meadows
27e6f99deb
use strings for shapeType for JS Entity properties
2015-02-20 16:54:58 -08:00
Brad Hefta-Gaub
9b6049489b
Merge pull request #4280 from AndrewMeadows/inertia
...
remove a couple crash modes on shutdown
2015-02-13 17:11:56 -08:00
Andrew Meadows
cfbf8fdca7
explicit cleanup of loaded model animations
...
in Application dtor
2015-02-13 16:19:10 -08:00
ZappoMan
bc5a1477e6
added logging of edit commands in the server
2015-02-13 14:59:57 -08:00
Andrew Meadows
b4bd60e979
give TextEntityItem a box collision shape
2015-02-12 08:28:34 -08:00
Andrew Meadows
8b34283d76
fix missing comma
2015-02-11 13:21:57 -08:00
Andrew Meadows
4581802532
explicitly flag virtual functions as such
2015-02-11 13:03:22 -08:00
Andrew Meadows
bd1817817b
restore order of PROP_USER_DATA
2015-02-11 12:59:59 -08:00
Andrew Meadows
ff27ab74ae
expose _shapeType to script and server
2015-02-11 08:46:41 -08:00
Andrew Meadows
e6a6946027
merge upstream/master into andrew/thermonuclear
2015-02-09 12:44:52 -08:00
Andrew Meadows
12543cae75
initial add of ModelEntityItem::_shapeType
2015-02-09 12:43:56 -08:00
Andrew Meadows
13b00f3f8f
forgot to add SphereEntityItem.cpp to last commit
2015-02-08 15:10:16 -08:00
Andrew Meadows
450713fdaa
Entitis support new (pending) API for ShapeInfo
2015-02-08 15:08:50 -08:00
Brad Hefta-Gaub
79b397fc3f
Merge pull request #4241 from birarda/master
...
repairs for warnings exposed in Xcode
2015-02-06 11:49:29 -08:00
Seth Alves
9539292c22
clarify settings explaination, coding standard
2015-02-06 10:44:35 -08:00
Stephen Birarda
c96085eb91
repairs to warnings shown in Xcode
2015-02-06 10:12:04 -08:00
Seth Alves
839b622a05
formatting
2015-02-06 09:20:16 -08:00
Seth Alves
60a4f48985
rather than a list of allowed editors, a list of allowed lockers/unlockers
2015-02-06 09:14:40 -08:00
Seth Alves
46bf6ea5da
coding standard
2015-02-05 16:37:37 -08:00
Seth Alves
bad44c540a
also guard deleteEntity and getEntityProperties with canEdit. make canEdit available to javascript
2015-02-05 16:22:52 -08:00
Seth Alves
80cf571d7d
formatting
2015-02-05 15:43:27 -08:00
Seth Alves
485785be7f
Allowed Editors setting in DomainServer; domain-list wire protocol includes "you can edit" boolean after uuid; entity server checks canEdit flag of node who sends edit requests; interface does not attempt to do edits if DomainServer sent false for "you can edit"
2015-02-05 15:37:14 -08:00
Clément Brisset
6a4577b6a5
Merge pull request #4231 from ZappoMan/crashonexit
...
BUG FIXES: Crash on Exit with partially loaded scene & (near)-infinite loop in skipForward physics
2015-02-04 16:16:56 -08:00
ZappoMan
8fd11e70cc
clamp dt for skipTimeForward to prevent near infinite loops
2015-02-04 15:16:18 -08:00
Ryan Huffman
2b00e3fadc
Add force option to deleteEntity
2015-02-04 10:49:49 -08:00
Andrew Meadows
547a416c3b
merge upstream/master into andrew/bispinor
2015-02-03 18:33:10 -08:00
Andrew Meadows
90202591fc
remove legacy shapes from EntityItem and friends
2015-02-03 10:05:39 -08:00
Andrew Meadows
0b78156956
remove unnecessary #includes
2015-02-02 16:45:51 -08:00
Andrew Meadows
156c4fcc9f
removing legacy collision detection code in Octree
2015-02-02 16:42:05 -08:00
Andrew Meadows
9da6b623a3
move shape polymorphism to ModelEntityItem
2015-01-30 16:25:35 -08:00
Andrew Meadows
bc52ba1d29
restore polymorphism for Box and Sphere entities
2015-01-30 16:18:50 -08:00
Andrew Meadows
80f6f718d0
EntityItem base class now computes shapeInfo
2015-01-30 14:17:29 -08: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
Brad Hefta-Gaub
a46fda3749
Merge pull request #4174 from huffman/delete-entity
...
Update deleteEntity to obey entity locked property
2015-01-27 13:05:05 -08:00
ZappoMan
23892ab1e7
fixed comments
2015-01-27 11:38:14 -08:00
ZappoMan
b1586d4f90
move debug into ifdef
2015-01-27 11:29:17 -08:00
ZappoMan
45dbff67f8
more hacking
2015-01-27 11:15:33 -08:00
Ryan Huffman
f65640a593
Update EntityTree.cpp to not delete entity when locked
2015-01-27 10:24:54 -08:00
Ryan Huffman
86f7c28ee9
Update EntityScriptingInterface::deleteEntity to not delete when known entity is locked
2015-01-27 10:24:28 -08:00
ZappoMan
83d1cc911a
hacking
2015-01-26 19:38:24 -08:00
ZappoMan
02c0700db3
support for skipping forward on new edit packets from server
2015-01-26 17:25:06 -08:00
ZappoMan
81185cfe56
removed some debugging
2015-01-26 12:46:22 -08:00
ZappoMan
a1ec44b8e0
add developer menu item to disable sending physics updates
2015-01-26 12:05:57 -08:00
ZappoMan
73b9c06ec0
added some debugging
2015-01-26 11:13:30 -08:00
ZappoMan
f85774c687
adding some debugging
2015-01-26 09:45:33 -08:00
Andrew Meadows
eb4678659a
remove EntityItem::getDistanceToBottomOfEntity()
...
and also isRestingOnSurface()
2015-01-23 15:56:44 -08:00
ZappoMan
9a0576adfb
remove setting last simulated in setLastEdited() because it may cause problems
2015-01-23 15:54:26 -08:00
ZappoMan
9cc61e90f7
Merge branch 'master' of https://github.com/highfidelity/hifi into fixGlitches
...
Conflicts:
libraries/entities/src/EntityItem.cpp
2015-01-23 15:01:35 -08:00
ZappoMan
fa485d21b7
added comment
2015-01-23 13:52:28 -08:00
ZappoMan
3c38a9eb53
add last simulated to the protocal
2015-01-23 13:32:38 -08:00
Andrew Meadows
36c20c24fe
fix for velocity in units of domain size
2015-01-23 13:20:12 -08:00
Andrew Meadows
f2bcdfa2b4
update _lastSimulated for kinematic motion
2015-01-23 13:10:41 -08:00
Andrew Meadows
d173afaa70
add support for non-physical kinematic movement
2015-01-23 11:01:46 -08:00
ZappoMan
31f72107da
remove support for old pre-entity svo files
2015-01-23 09:26:48 -08:00
ZappoMan
838a549abe
debugging stutter
2015-01-22 13:31:09 -08:00
ZappoMan
14c7dc8eb9
debugging stutter
2015-01-22 13:13:18 -08:00
Andrew Meadows
1b7074e52a
purge EntityCollisionSystem
2015-01-21 14:16:34 -08:00
Andrew Meadows
1c38b08e8f
remane emitEntityCollision... to entityCollision...
2015-01-21 14:07:23 -08:00
Andrew Meadows
86583f3f3f
physics collisions emit script collision events
2015-01-21 11:27:32 -08:00
Philip Rosedale
1ff90bec5d
Merge pull request #4124 from AndrewMeadows/inertia
...
support for simple kinematic motion
2015-01-16 13:33:44 -08:00
Andrew Meadows
4392af3b3a
Remove pre-Bullet server-side EntityItem motion
2015-01-16 09:26:43 -08:00
Andrew Meadows
3fed38793e
merge andrew/origin/inertia to andrew/local/inertia
2015-01-15 17:55:51 -08:00
Andrew Meadows
250fd98fee
support for simple kinematic motion
2015-01-15 17:51:01 -08:00
Brad Hefta-Gaub
89967fbe7a
Merge pull request #4104 from AndrewMeadows/inertia
...
store density in EntityItem instead of mass
2015-01-14 17:17:45 -08:00
ZappoMan
ff60833129
fix ray pick of ellipsoids away from origin
2015-01-14 16:55:24 -08:00
Andrew Meadows
ccc50dd94f
use density instead of mass
2015-01-14 15:47:44 -08:00
Andrew Meadows
03b8badd81
EntityItem stores density rather than mass.
2015-01-14 15:00:57 -08:00
Andrew Meadows
04b4a95ccb
fix for bad cleanup (3 places)
2015-01-13 14:21:41 -08:00
Andrew Meadows
cee7a4db10
merge upstream/master into andrew/inertia
2015-01-13 14:03:27 -08:00
Andrew Meadows
dcca5d532a
fix for glitchy physics updates
...
The main problem was: ObjectMotionState::_sentPosition and friends
were not being updated when the EntityServer update arrives.
2015-01-13 14:00:37 -08:00
Clément Brisset
206e1e48f6
Merge pull request #4086 from huffman/std-to-qstring
...
Std to qstring
2015-01-12 16:19:28 -08:00
Andrew Meadows
7a2ecd27fd
fix typo
2015-01-12 14:32:32 -08:00
Andrew Meadows
081037bc5f
merge upstream/master into andrew/inertia
2015-01-12 12:34:50 -08:00
Andrew Meadows
bece05a994
entity prop defaults move to their own header
2015-01-12 11:49:31 -08:00
Andrew Meadows
89a782c55a
remove functional code from inside assert
2015-01-11 13:31:37 -08:00
ZappoMan
60f55c7f3f
remove important code from assert so it still runs in release build
2015-01-11 12:07:16 -08:00
Andrew Meadows
e711b86519
scale DEFAULT_DIMENSIONS correctly
...
also remove a block of commented out cruft
2015-01-10 19:07:58 -08:00
Andrew Meadows
1184f5b668
merge upstream/master into andrew/inertia
2015-01-10 12:45:14 -08:00
Andrew Meadows
25e64d619c
move statics out of EntityItem
...
This makes for much more readable core dumps
2015-01-10 11:46:42 -08:00
Andrew Meadows
99e1fdd46e
fix for EntityServer crash
...
adding EntityItem::_element backpointer for easier add/remove logic
2015-01-10 07:44:26 -08:00
chris
8bb69d0a90
Update std::string instances to QString
2015-01-09 16:22:52 -08:00
Andrew Meadows
4946ec18b6
remove some TODO comments
2015-01-09 09:28:01 -08:00
Andrew Meadows
f8c512b690
fix deleteEntity() to actually delete result
2015-01-08 12:42:16 -08:00
Andrew Meadows
b0b2eb5d38
use exact equality for filtering dimension changes
2015-01-08 11:09:32 -08:00
Andrew Meadows
c37c1515ba
EntitySimulation is lockable
...
also DeleteEntityOperator just removes the entities
and EntityTree does the actual delete
(after properly locking its _simulation)
2015-01-08 10:22:25 -08:00
Andrew Meadows
af9bafae87
fix typo
2015-01-07 12:48:16 -08:00
Andrew Meadows
1745548665
fix rapid attenuation of angular velocity
2015-01-07 12:42:50 -08:00
Philip Rosedale
413cbacbc1
Merge pull request #4043 from ZappoMan/voxelEctomy
...
more voxel-ectomy cleaning up some remaining references to voxels
2015-01-06 10:07:38 -08:00
ZappoMan
b940dcfdb3
more voxel-ectomy cleaning up some remaining references to voxels
2015-01-06 09:27:48 -08:00
Stephen Birarda
51bba4884f
resolve conflicts on merge with upstream master
2015-01-05 14:40:48 -08:00
Andrew Meadows
162854c5a5
Merge pull request #4025 from ZappoMan/voxelEctomy
...
Voxel ectomy
2015-01-05 13:20:30 -08:00
Andrew Meadows
6fb4e1f622
oops, need to update angularVelocity after damping
2015-01-05 12:23:55 -08:00
Andrew Meadows
bf6b8f9ca7
do not zero small velocities for non-bullet case
2015-01-05 12:01:09 -08:00
Andrew Meadows
3b7770f405
change meaning of damping to agree with bullet
...
0 = no damping
1 = 100% damping
The new formula is: velocity *= (1 - damping)^dt
2015-01-05 11:23:01 -08:00
Stephen Birarda
dfb02aea0c
resolve conflicts on merge, add cstring inc
2015-01-05 09:25:30 -08:00
Andrew Meadows
d032eab0de
merge upstream/master into andrew/inertia
2015-01-05 09:19:37 -08:00
Atlante45
022beff569
Initialize entities' _locked and _script
2015-01-02 12:37:00 -08:00
Andrew Meadows
0d3e78fdb8
modify extrapolation behavior when bullet enabled
...
Allows Bullet to specify an object as "at rest"
by setting velocity to zero.
Also, moved velocity damping above position integration
to get the same order of operations as Bullet.
2014-12-31 16:32:09 -08:00
ZappoMan
9630279459
Merge branch 'master' of https://github.com/highfidelity/hifi into voxelEctomy
...
Conflicts:
examples/editVoxels.js
examples/fallingSand.js
examples/growTrees.js
interface/src/Application.cpp
interface/src/Application.h
libraries/avatars/CMakeLists.txt
libraries/entities/src/EntityItem.h
2014-12-31 10:50:53 -08:00
Brad Hefta-Gaub
43e6ba77fa
Merge pull request #4007 from AndrewMeadows/inertia
...
Bullet physics part 1
2014-12-31 10:33:00 -08:00
ZappoMan
141e231958
more work on voxelEctomy
2014-12-30 18:41:56 -08:00
ZappoMan
4ea9bbc309
first major pass at voxelEctomy
2014-12-30 18:08:58 -08:00
ZappoMan
86a9d5719b
fix one more case of animaiton stutter
2014-12-30 15:12:23 -08:00
Andrew Meadows
da551a0a76
restore script change detection to what it was
2014-12-30 11:56:39 -08:00
Andrew Meadows
ba873deb49
ignore Entity updates that don't change anything
2014-12-30 11:38:24 -08:00
ZappoMan
a0ec2ddfe9
clamp frame index between 0 and 100,000
2014-12-29 21:07:04 -08:00
Andrew Meadows
97f44b64fc
assert NULL EntityItem::_physicsInfo in dtor
2014-12-29 15:27:54 -08:00
Andrew Meadows
213133c705
restoring EntityTreeElement::cleanupEntities()
2014-12-29 15:19:25 -08:00
ZappoMan
49e350fab2
Merge branch 'master' of https://github.com/highfidelity/hifi into animationFrameIndex
2014-12-29 14:01:35 -08:00
Andrew Meadows
0ec56816c0
remove unused variable cruft
2014-12-29 10:43:09 -08:00
Andrew Meadows
bef14a46ac
remove commented out cruft
2014-12-29 10:41:19 -08:00
Stephen Birarda
c7a5f3c86c
resolve conflicts and merge with upstream master
2014-12-29 10:59:42 -07:00
Andrew Meadows
9b7e50858a
merge upstream/master into andrew/inertia
...
Conflicts:
libraries/avatars/CMakeLists.txt
libraries/entities/CMakeLists.txt
2014-12-29 09:15:49 -08:00
ZappoMan
72cced12a6
guards for NULL collisions, possible fix to fountain crash
2014-12-23 11:30:32 -08:00
Andrew Meadows
dab1f026d7
simpler EntityItem::simulate() bypass for bullet
2014-12-18 13:56:18 -08:00
Andrew Meadows
85fd1fc14f
merge andrew/thermonuclear into andrew/inertia
...
Conflicts:
interface/src/Application.cpp
libraries/entities/src/EntityItem.cpp
2014-12-18 13:46:06 -08:00
Andrew Meadows
b03e6c53e1
fixing derived classes to use new EntityItem API
...
remove 'forceCopy' argument in EntityItem::setProperties()
2014-12-18 11:41:20 -08:00
Andrew Meadows
28381a3b70
cleanup of EntityItem::_created timestamp logic
...
EntityItem::_created initializes to 0 in ctor
and must be set either by EntityItemProperties (via server update)
or manually whenever a script creates a fresh entity
2014-12-18 11:39:02 -08:00
Stephen Birarda
7beb3a7b62
resolve conflicts on merge with upstream master
2014-12-17 16:57:35 -08:00
Andrew Meadows
756d09d895
fix typo that broke the build
2014-12-17 16:06:15 -08:00
Andrew Meadows
6e7eccdb27
merge upstream/master into andrew/thermonuclear
2014-12-17 15:59:45 -08:00
Andrew Meadows
75d468da9e
set _lastEdited to _created rather than to zero
2014-12-17 15:59:16 -08:00
Andrew Meadows
44ebf37510
handle case where obj at rest but still falls
2014-12-17 15:52:34 -08:00
Andrew Meadows
1e5c44f117
accept changes with the same Edit timestamp
2014-12-17 15:48:49 -08:00
Andrew Meadows
547c4cdaf9
make non-bullet entity simulation work again
2014-12-17 14:52:38 -08:00
Andrew Meadows
6ea766b48d
merge andrew/thermonuclear into andrew/inertia
...
Conflicts:
interface/src/Application.cpp
libraries/entities/src/EntityItem.cpp
libraries/entities/src/EntityTypes.cpp
2014-12-17 13:21:00 -08:00
Andrew Meadows
8de309a7a9
more correct _created and _lastEdited
2014-12-17 12:38:26 -08:00
Andrew Meadows
5efd996548
clarifying some comments on member variables
2014-12-17 12:37:49 -08:00
Andrew Meadows
e36ee2a961
more correct creation and edit times for entities
2014-12-17 12:19:34 -08:00
ZappoMan
a465aa20ff
more Application and Menu dependency removal
2014-12-17 11:41:42 -08:00
Stephen Birarda
e0752cef54
remove collision sound creation calls
2014-12-16 15:35:37 -08:00
Stephen Birarda
6fd55e6f42
make Audio class use DependencyManager
2014-12-16 12:31:01 -08:00
ZappoMan
660bf2720e
convert AnimationCache to DependencyManager
2014-12-15 19:48:15 -08:00
Andrew Meadows
67c3a25475
Merge branch 'master' of ssh://github.com/highfidelity/hifi into inertia
...
Conflicts:
interface/src/Application.cpp
libraries/entities/src/EntityItem.h
2014-12-15 14:46:46 -08:00
Andrew Meadows
0f488bca02
differentiation btw _lastEdited and _lastSimulated
2014-12-15 14:28:53 -08:00
Andrew Meadows
fd8e3f6169
add moved entities to lists for sorting
...
and also for outgoing packet updates
2014-12-12 13:28:12 -08:00
Andrew Meadows
4c74c041c2
remove unused cruft
2014-12-10 16:59:49 -08:00
Andrew Meadows
c4d076b0bb
added comments about macro behavior
2014-12-10 16:59:17 -08:00
AndrewMeadows
9aaaae6759
Merge pull request #3934 from ZappoMan/bugfixes
...
fix a bug in MovingEntitiesOperator that would sometimes leave dangling entities
2014-12-09 18:08:14 -08:00
ZappoMan
426517b072
fix a bug in MovingEntitiesOperator that would sometimes leave dangling entities
2014-12-09 17:11:01 -08:00
Andrew Meadows
bc22e5723c
bundle the flags that EntitySimulation cares about
2014-12-09 12:55:58 -08:00
Andrew Meadows
699e632e68
remove EntityItem::SimulationState after bad merge
2014-12-09 12:45:21 -08:00
ZappoMan
663b9c393e
add debugging
2014-12-09 12:43:34 -08:00
Andrew Meadows
3fd2f12a73
merge upstream/master into andrew/inertia
...
Conflicts:
libraries/entities/src/EntityItem.cpp
libraries/entities/src/EntityItem.h
libraries/entities/src/EntitySimulation.h
libraries/entities/src/EntityTree.cpp
libraries/entities/src/EntityTreeElement.cpp
libraries/entities/src/SimpleEntitySimulation.cpp
libraries/entities/src/SimpleEntitySimulation.h
libraries/entities/src/SphereEntityItem.cpp
2014-12-09 12:41:53 -08:00
ZappoMan
3c09ca71cb
move emit of collisions to after done moving entities, so that callbacks can delete entities
2014-12-08 18:09:49 -08:00
Andrew Meadows
d4c72ab203
handle case where EntityItem's script has changed
2014-12-08 17:16:45 -08:00
Andrew Meadows
a519775cb3
unecessary EntitySimulation::entityChanged() calls
2014-12-08 17:15:58 -08:00
Brad Hefta-Gaub
651e550063
Merge pull request #3925 from AndrewMeadows/thermonuclear
...
fix for non-animating models
2014-12-08 16:58:16 -08:00
Andrew Meadows
675a2dd989
add DIRTY_UPDATEABLE flag for changes that need it
2014-12-08 16:32:25 -08:00
Andrew Meadows
27bfc9907f
fix bug preventing butterflies from animating
...
(forgot to make base method virtual)
2014-12-08 16:31:36 -08:00
ZappoMan
efbe8ce757
Merge branch 'master' of https://github.com/highfidelity/hifi into entityCollisions
2014-12-08 14:15:20 -08:00
ZappoMan
0592b74a06
make collision callbacks work
2014-12-08 14:15:03 -08:00
Andrew Meadows
9e9929da91
merge upstream/master into andrew/thermonuclear
2014-12-08 11:22:39 -08:00
Andrew Meadows
3ce1d4a38d
set dirty bit when script changes simulation stuff
...
also fixes for linear and angular damping
2014-12-08 11:21:01 -08:00
Andrew Meadows
6fdfde31d9
whoops, forgot to increment the iterator
2014-12-08 11:20:27 -08:00
ZappoMan
27bc394bed
repair collision info mismatch
2014-12-08 10:52:53 -08:00
Philip Rosedale
7de2256744
Merge pull request #3919 from ZappoMan/enforceDimensionsForLightsAndText
...
enforce dimensions for Light and Text entities
2014-12-08 09:19:06 -08:00
Philip Rosedale
732b40f68c
Merge pull request #3918 from ZappoMan/acEntityCrash
...
Ac entity crash
2014-12-08 09:16:40 -08:00
ZappoMan
cf98bff28b
enforce dimensions for Light and Text entities
2014-12-08 07:23:45 -08:00
ZappoMan
497fbade9b
fix crash in entity related AC scripts
2014-12-08 06:48:04 -08:00
ZappoMan
398b5b1f91
Merge branch 'master' of https://github.com/highfidelity/hifi into fixEllipsoidRayPick
...
Conflicts:
libraries/entities/src/SphereEntityItem.cpp
libraries/entities/src/SphereEntityItem.h
2014-12-07 21:03:09 -08:00
ZappoMan
dd4f3a4006
coding standard, added comments
2014-12-07 20:18:30 -08:00
ZappoMan
b9891748e1
remove dead code
2014-12-07 01:32:31 -08:00
ZappoMan
b08d5b87ca
implement proper ray picking against ellipsoids
...
Conflicts:
libraries/entities/src/SphereEntityItem.cpp
2014-12-07 01:31:40 -08:00
ZappoMan
08092e7abe
removed dead code
2014-12-06 15:06:00 -08:00
ZappoMan
3bb16ce831
properly wire up precision picking in JS api
2014-12-06 12:03:46 -08:00
ZappoMan
7ea85073f4
introduce precision picking in API form
2014-12-06 11:45:49 -08:00
ZappoMan
1fec69698e
get the triangle picking for submeshes working, remove some debug
2014-12-05 23:23:21 -08:00
Andrew Meadows
7d96ad5836
cleanup of EntitySimulation API
...
* remove EntityItem::_simulationState (only useful to EntitySimulation)
* move code from SimpleEntitySimuation to EntitySimulation
* EntitySimulation now maintans many QSets of entities
* cleanup and clarify use of EnityTree::updateEntity()
* reduced cost of polling for entity expiries
* changed "UpdateFlags" to "DirtyFlags" and clarified what they're for
2014-12-05 18:08:53 -08:00
ZappoMan
ae647d39d0
fix models with registrations other than 0,0,0
2014-12-05 16:14:18 -08:00
ZappoMan
0ccbb98bde
more work on improved model picking
2014-12-05 15:03:35 -08:00
ZappoMan
a6b86da47a
basics of triangle picking working for models
2014-12-05 11:31:27 -08:00
ZappoMan
5ec9a9b6ed
make text entities correctly ray pick
2014-12-04 13:49:46 -08:00
ZappoMan
842ee714b8
make text entities correctly ray pick
2014-12-04 13:08:16 -08:00
ZappoMan
11f10f9512
make sphere entities pick off their actual sphere, fix bug in ray picking multiple items with different distances
2014-12-04 10:54:04 -08:00
ZappoMan
958b37dead
Merge branch 'master' of https://github.com/highfidelity/hifi into rayPickWork
2014-12-04 09:38:38 -08:00
Andrew Meadows
ab011d5b30
fix for non-animating models
2014-12-03 16:49:49 -08:00
ZappoMan
cd92185c5b
Merge branch 'master' of https://github.com/highfidelity/hifi into rayPickWork
...
Conflicts:
examples/newEditEntities.js
interface/src/avatar/MyAvatar.cpp
interface/src/avatar/MyAvatar.h
libraries/entities/src/EntityTree.h
2014-12-03 15:07:47 -08:00
Andrew Meadows
85e7c6166b
support for spherical entities
2014-12-03 12:10:26 -08:00
Andrew Meadows
a21ebe4f6a
merge andrew/thermonuclear into andrew/inertia
2014-12-02 15:31:30 -08:00
Andrew Meadows
c9ea6885c1
PhysicsEngine is now an EntitySimulation
2014-12-02 15:29:41 -08:00
ZappoMan
63d1ac8375
implement support for entity subclasses to implement their own detailed ray intersection, make likes light pickability toggle
2014-12-02 14:56:12 -08:00
Andrew Meadows
ff7559c2c2
merge upstream/master into andrew/thermonuclear
2014-12-02 11:41:29 -08:00
Andrew Meadows
b9944edf66
OctreeServer::createTree() is now protected
2014-12-02 11:13:37 -08:00
Andrew Meadows
0814949e4c
moving EntityCollisionSystem back to entities lib
2014-12-02 11:05:17 -08:00
Andrew Meadows
1df6c32a4e
moving Shape* back into shared lib
...
removing dependency of entities lib on physics lib
physics lib now depends on entities lib
2014-12-01 16:03:14 -08:00
ZappoMan
5c2cc20313
fixes the stutter in animation when observer moves
2014-11-28 17:36:55 -08:00
Andrew Meadows
051b04402f
merge andrew/thermonuclear into andrew/inertia
...
Conflicts:
libraries/entities/src/EntityTree.cpp
libraries/entities/src/EntityTree.h
2014-11-26 17:21:11 -08:00