0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-12-28 14:09:01 -05:00
Commit graph

64 commits

Author SHA1 Message Date
liabru
6e1ab9a24c merge tumult:old_ie_fixes + tweaks 2014-07-12 18:42:39 +01:00
liabru
69b1d05efc moved collision events into Engine.update, changed collisionStart to trigger before collisions resolved 2014-07-09 17:46:44 +01:00
liabru
89140aedf0 appease jshint 2014-06-21 23:23:41 +01:00
liabru
7eadea9d33 changed Sleeping constants to be public (module level) 2014-06-21 23:19:21 +01:00
liabru
0ae2d02812 added time scaling to Sleeping 2014-06-21 23:13:06 +01:00
liabru
e22ceebed5 added docs for engine.timing.isFixed 2014-06-21 22:39:55 +01:00
liabru
6dd0c05f41 removed engine.broadphase.current, removed engine.broadphase.instance, changed engine.broadphase to refer to the broadphase instance, updated matter-tools 2014-06-21 19:24:53 +01:00
liabru
14392b4a88 removed redundant property 2014-06-21 17:55:09 +01:00
liabru
eaa97679d8 changed Mouse.create to return as a plain object 2014-06-21 17:50:04 +01:00
liabru
fb5d899086 removed engine.input, removed Engine mouse events, added MouseConstraint mouse events 2014-06-21 17:44:25 +01:00
liabru
2317f02fb4 improved docs 2014-05-20 14:15:39 +01:00
liabru
0a46cb248b changed Math.random to Common.random and use a seeded RNG 2014-05-10 15:01:35 +01:00
Jonathan Deutsch
b91af36575 Use own Common.indexOf method for IE 6-8 compatibility
Conflicts:
	src/core/Common.js
2014-05-05 16:58:42 -07:00
liabru
186d839942 fixed more issues with timing.timeScale 2014-05-04 15:12:23 +01:00
liabru
0c107b21ed added mouse.wheelDelta 2014-05-04 12:37:23 +01:00
liabru
8427e89938 fixed Mouse.setScale and Mouse.setOffset 2014-05-04 12:37:04 +01:00
liabru
e63689c938 added Mouse.setScale, Mouse.setPosition, mouse.absolute 2014-05-03 18:45:48 +01:00
liabru
ebc00f83ef changed engine.timing.timestamp to be simulation based rather than wall-clock based 2014-05-02 12:59:41 +01:00
liabru
2fad14336c fixed: changed correction to now be optional in Engine.update (defaults to 1) 2014-05-02 12:53:44 +01:00
liabru
4e14169ac6 changed correction to now be optional in Engine.update (defaults to 1) 2014-05-02 12:25:32 +01:00
liabru
d1f607edb8 added Engine.render, moved respective engine event triggers into Engine.update and Engine.render 2014-05-02 12:23:13 +01:00
liabru
bc35c93106 added engine.timing.isFixed option 2014-05-02 10:48:24 +01:00
liabru
786b9af7a0 added mouse.offset 2014-05-01 13:40:45 +01:00
liabru
77168e5faf fixed issue with Matter.Mouse 2014-05-01 11:52:50 +01:00
liabru
7a8051b585 Engine.merge now uses Common.nextId 2014-04-30 21:55:08 +01:00
liabru
5b013d01e7 changed Events.on to return callback, changed Events.off to accept callbacks for removal 2014-04-30 10:32:34 +01:00
liabru
cb7cb9583a added Common.nextId, removed Body.nextId, removed Constraint.nextId, removed Composite.nextId 2014-04-29 17:34:28 +01:00
liabru
4c97284f0e fixed an issue with timing.timeScale when at 0 2014-04-24 19:45:06 +01:00
liabru
8f53178715 moved event documentation to end of file for clarity 2014-04-24 16:36:36 +01:00
liabru
5830311daa changed engine.timeScale to engine.timing.timeScale 2014-04-24 16:29:48 +01:00
liabru
e8dba617de fixed some issues with engine.timeScale 2014-04-24 16:23:23 +01:00
liabru
537f0912c3 constraints now account for timeScale 2014-04-23 14:26:57 +01:00
liabru
aeea9f8c08 tweaks to docs 2014-04-01 13:45:15 +01:00
liabru
b24408635a improved constraint performance 2014-03-30 18:21:40 +01:00
liabru
0d4a6f4000 replaced "in" operator usage with access checks, it's a little faster 2014-03-28 18:36:14 +00:00
liabru
1b2d58cebf delta is now sampled over 1s, improves stability 2014-03-28 18:21:33 +00:00
liabru
f35a54d81f constraintIterations now defaults to 2 for better stability 2014-03-28 17:33:25 +00:00
liabru
203179d526 removed default MouseConstraint from engine, now must be manually added by user (see demo) 2014-03-26 11:53:41 +00:00
liabru
c99ceb02ab added Mouse.setElement 2014-03-26 11:46:43 +00:00
liabru
aa42f1653f Events.clear is now Events.off 2014-03-24 19:49:03 +00:00
liabru
b253683cb5 composites now support removals (implemented isModified flag) 2014-03-24 19:48:23 +00:00
liabru
13fde400ba Manager has now become the Pairs data structure 2014-03-24 00:47:05 +00:00
liabru
2d52d53bf0 composites are now an actual tree structure 2014-03-24 00:30:16 +00:00
liabru
e4445bc791 MouseConstraint is no longer a composite (as it has only one constraint) 2014-03-19 22:51:21 +00:00
liabru
e619be0d01 improved custom engine renderer passing 2014-03-19 21:44:22 +00:00
liabru
99346160aa appease jshint 2014-03-19 12:58:54 +00:00
liabru
c8ebf8b9f4 added Common.colorToNumber and Common.log 2014-03-19 12:51:01 +00:00
liabru
56768a4c9d fixed issue with extending null properties 2014-03-19 12:49:48 +00:00
liabru
123d391d00 now only fps metrics by default, set metrics.extended true for full metrics 2014-03-17 17:41:25 +00:00
liabru
00feed5272 prevented possible redundant object initialisation 2014-03-17 17:22:49 +00:00