0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-12-27 13:59:01 -05:00
Commit graph

172 commits

Author SHA1 Message Date
liabru
d4d64edaa1 improved logging 2016-08-04 00:14:10 +01:00
liabru
8da170f382 refactor plugin system 2016-08-03 01:04:45 +01:00
liabru
e84c537d29 added Matter.Plugin initial implementation 2016-07-31 18:32:03 +01:00
liabru
7c8f6ced5c fix requestAnimationFrame polyfill for Matter.Runner, closes #252 2016-06-26 20:38:06 +01:00
liabru
4972af847e fixed issue with Matter.RenderPixi not being cleared when bodies removed, closes #218 2016-06-25 18:23:12 +01:00
liabru
1340159451 fix Matter.Mouse when element does not have fixed dimensions, closes #73 2016-06-25 17:34:28 +01:00
liabru
e8c899aeec deprecated Matter.RenderPixi 2016-04-26 21:32:14 +01:00
liabru
a6b97cd4e3 deprecated Matter.RenderPixi 2016-04-26 21:17:00 +01:00
liabru
de823ebb08 decouple Matter.Render from Matter.Engine 2016-04-26 20:18:44 +01:00
liabru
f36fe2c329 handle missing options in Engine.create 2016-04-19 11:19:03 +01:00
liabru
d373172c19 Merge branch 'master' of github.com:liabru/matter-js 2016-04-19 11:05:34 +01:00
Joshua Heiland
158c40425e Engine uses provided world; fixes issue #230 2016-04-18 12:56:50 -07:00
liabru
e2e7c0b10d fix Matter.Engine.create docs to show element param is optional 2016-04-18 00:22:09 +01:00
liabru
23a773ae88 fix issue with removed bodies causing collisions 2016-04-09 20:10:35 +01:00
liabru
490d232f48 added default for delta parameter in Engine.update, closes #200 2016-02-07 16:06:54 +00:00
liabru
a38b22721c change gravity scale to variable rather than a constant 2015-12-29 22:50:24 +00:00
liabru
2e6afd477a improved docs 2015-12-27 21:14:24 +00:00
liabru
d4cbdbbd0e formatting merge 2015-12-23 16:07:37 +00:00
liabru
1b8574ac16 Merge branch 'no-gravity-optim' of https://github.com/BlackDice/matter-js into BlackDice-no-gravity-optim 2015-12-23 16:04:16 +00:00
liabru
203252a872 added Demo.setManualControl 2015-12-02 22:33:31 +00:00
liabru
6e0e7e47f8 Merge branch 'node-tests' into browserify
Conflicts:
	.jshintrc
2015-08-17 20:55:13 +01:00
liabru
06eea3ec3a fix Matter.Demo for node 2015-08-17 00:48:52 +01:00
liabru
ad55b85912 fix Matter.Runner for node 2015-08-15 20:38:40 +01:00
liabru
99c3bb3273 move require statements below module export 2015-08-13 23:03:08 +01:00
liabru
9e3438f359 Merge branch 'runner-improve' into browserify 2015-08-13 21:07:58 +01:00
liabru
ce474dad45 tweaks to Matter.Runner 2015-08-13 00:36:31 +01:00
liabru
dcdc43d475 moved engine.timing properties, tick events and Engine.render into Matter.Runner module 2015-07-29 20:25:46 +01:00
liabru
5c69f2efd1 added Runner.create and Runner.tick 2015-07-07 23:02:17 +01:00
liabru
1b7e27d8a4 added options to Metrics.create 2015-07-07 21:07:48 +01:00
liabru
c46e9155e2 fix handling of engine.render 2015-07-05 15:57:12 +01:00
FredyC
e54802c335 don't calculate gravity force if there is no actual gravity 2015-07-03 07:09:16 +02:00
liabru
b669ea0da1 fix support for nodejs 2015-06-29 20:57:41 +01:00
liabru
00251e5b04 use browserify 2015-06-04 20:54:50 +01:00
liabru
bc26469df2 added body sleepStart and sleepEnd events, closes #91 2015-05-24 15:56:54 +01:00
liabru
42dc72dabe Merge branch 'pr/60'
[liabru] corrected some of the param types before merge

Conflicts:
	src/body/Body.js
	src/collision/Resolver.js
	src/render/Render.js
	src/render/RenderPixi.js
2015-05-24 13:43:34 +01:00
liabru
8b5192d04d change world.bounds to Infinity, remove world bounds check from Engine, closes #67 2015-05-20 23:29:35 +01:00
liabru
8555c0c671 fixed Common.now, closes #55 2015-05-20 23:12:26 +01:00
liabru
41b4b7f610 Merge branch 'master' of https://github.com/rfoligno/matter-js into rfoligno-master 2015-05-20 22:41:38 +01:00
liabru
e8205f84d8 added support for multiple vertices input in Bodies.fromVertices 2015-04-13 00:25:49 +01:00
liabru
e01dd229a9 fixed compound body stability, improved position resolver 2015-04-08 20:31:03 +01:00
Richard Foligno
05f1c46255 Fix for travis 2015-03-03 19:50:47 -05:00
Richard Foligno
d585e80b5b Allow for negative force to bring a body out of sleeping state. 2015-03-03 19:46:44 -05:00
liabru
d2f79b4689 further work on compound implementation 2015-02-01 13:57:56 +00:00
liabru
b3921fb72e added Matter.World extends Matter.Composite to docs 2015-01-25 15:14:51 +00:00
liabru
968bba265a removed Matter.Metrics from release builds (now dev only) 2015-01-25 12:06:55 +00:00
liabru
af83e27ff0 added Mouse.create warning for omitted element 2015-01-21 00:10:10 +00:00
liabru
c220f41701 changed Common.log to use console.warn 2015-01-21 00:09:07 +00:00
PlNG
aa3eabc5fe Update JSDoc
This might need fixing later, I don't know if I did it right.
2015-01-20 11:49:21 -05:00
PlNG
10a46b7fad Update JSDoc
This might need fixing later, I don't know if I did it right.
2015-01-20 11:49:12 -05:00
PlNG
611a429746 Spellchecking 2015-01-20 11:07:49 -05:00
PlNG
65d5d9330b Spellchecking 2015-01-20 11:07:29 -05:00
liabru
9aa0945f03 removed Body.resetForcesAll, removed Body.applyGravityAll, removed Body.updateAll 2015-01-19 00:30:06 +00:00
liabru
0a15d7d1b1 removed Render.clear (redundant) 2015-01-17 14:27:51 +00:00
liabru
0933620b68 fix bug when using timing.isFixed, closes #44 2015-01-01 23:09:46 +00:00
liabru
5888ffcaf6 cleanup 2015-01-01 17:52:18 +00:00
liabru
4746eb9348 added support for hidpi rendering 2014-12-28 18:20:54 +00:00
liabru
2fa1570e45 updated edge build 2014-07-29 16:26:49 +01:00
liabru
6911395222 moved Engine.run to Matter.Runner 2014-07-29 16:23:14 +01:00
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