0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2025-03-14 00:38:41 -04:00
Commit graph

495 commits

Author SHA1 Message Date
MatteoAvalle
5b755a1a62 Adding the opacity attribute to be able to draw semi-transarent sprites
Just a really simple commit adding a tiny feature I think it could be useful
while, at the same time, it seems even too tiny to specifically build a
custom render just to include it.
2016-02-05 11:24:58 +01:00
Brian Broll
dd5e2602e9 Changed bounds checking MIN_VALUE to -MAX_VALUE. Fixes #202
WIP #202. Changing Number.MAX_VALUE to Infinity
2016-02-04 15:04:00 -06:00
liabru
a38b22721c change gravity scale to variable rather than a constant 2015-12-29 22:50:24 +00:00
Marcin Misiurski
28084b005a Change permeable name to sensors, add isSensor to Pair 2015-12-28 21:38:09 +01:00
Marcin Misiurski
6e7add16bf Add permeability example and doc entry 2015-12-28 21:36:52 +01:00
Marcin Misiurski
1573359354 Add permeable objects 2015-12-28 21:36:51 +01:00
liabru
5ff218234a improve Composite.car 2015-12-28 18:50:26 +00:00
liabru
6f892502c2 remove constraint torque clamp 2015-12-28 18:50:07 +00:00
liabru
2e6afd477a improved docs 2015-12-27 21:14:24 +00:00
liabru
500d566772 fix Demo.reset to fully reset ids 2015-12-25 15:57:27 +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
dff0e30cbc fixed issue with MouseConstraint.create, closes #185 2015-12-23 13:50:31 +00:00
liabru
3f9364c240 fixed issue with Body.applyForce torque, closes #64 2015-12-23 13:41:11 +00:00
liabru
6e1f8e9e27 improved examples 2015-12-23 12:45:40 +00:00
liabru
1db98a3e86 fixed issues with friction stability 2015-12-23 12:45:11 +00:00
liabru
3de9d00b8e added sprite offsets relative to centre of mass, closes #153 2015-12-05 20:26:49 +00:00
liabru
449774c94d fix issue when Bodies.trapezoid slope === 1, closes #138 2015-12-05 18:58:56 +00:00
liabru
e04de5fb4e removed Detector.bruteForce 2015-12-05 18:12:07 +00:00
liabru
c3129b8651 use actual canvas size for default render bounds 2015-12-05 17:19:50 +00:00
liabru
2510cdfa12 Merge branch 'master' of https://github.com/schahriar/matter-js into schahriar-master 2015-12-05 17:12:50 +00:00
liabru
087fab245e fix issue with Render.debug when no timing passed, closes #171 and #176 2015-12-05 16:42:53 +00:00
liabru
203252a872 added Demo.setManualControl 2015-12-02 22:33:31 +00:00
liabru
df5f16ca5f added missing dependency to Render.js 2015-12-02 00:45:19 +00:00
liabru
e191d44857 added render.options.showMousePosition 2015-12-02 00:41:28 +00:00
liabru
e0a6de0971 added Matter.version 2015-12-02 00:39:51 +00:00
liabru
8210dbebb3 added early out in Constraint.postSolveAll, pass body.velocity when updating bounds 2015-12-02 00:38:56 +00:00
Schahriar SaffarShargh
0b51dd67c5 Ensure passed canvas abides by render options
Engine.create takes a canvas element or creates a new canvas using the
given options. While the properties width and height in options do apply
to the created canvas, they do not apply to the passed canvas. These set
options are under render.canvas, render.options.width and
render.options.height. This issue was fixed by setting the canvas width
and height only when a canvas element is directly provided.
2015-11-09 02:21:05 -08:00
liabru
9d5c27afb8 fix mobile demo, remove dev.html, fix debug info rendering 2015-08-26 00:30:25 +01:00
liabru
9ba8a2afd4 move license in build 2015-08-17 23:30:25 +01:00
liabru
de165293c3 fix standalone option 2015-08-17 21:02:41 +01: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
aa48322329 added beforeRender and afterRender events to Matter.Render 2015-07-29 20:26:35 +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
86fcfcd223 fix issue in Render.inspector on Chrome 2015-07-29 20:17:47 +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
536e55f496 fix undefined variables, added jshint checks, closes #102 2015-07-02 20:16:20 +01: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
d03145e2d1 upgraded pixi.js to v3.0.6 2015-05-22 00:32:39 +01:00