0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-27 09:50:52 -05:00
Commit graph

317 commits

Author SHA1 Message Date
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
afd7531fe4 added readonly to docs for type property, closes #235 2016-04-18 00:17:05 +01:00
liabru
23a773ae88 fix issue with removed bodies causing collisions 2016-04-09 20:10:35 +01:00
liabru
f428d6be58 fix Body.scale for circles, closes #234 2016-04-07 19:50:07 +01:00
liabru
e1a52d59aa Merged sensors from Misiur-master 2016-04-05 23:54:40 +01:00
Liam
1944f6a34c Merge pull request #224 from brollb/223-bounds-ignored-in-renderer
Updated `hasBounds` default value. Fixes #223
2016-04-05 23:22:06 +01:00
Brian Broll
053ea76bc6 Updated hasBounds default value. Fixes #223
WIP #223 changed 'render' to 'options'
2016-04-05 14:54:26 -05:00
Liam
79fa57e3cd Merge pull request #232 from Rantanen/docs
Document World bounds and Grid bucket size.
2016-04-05 20:46:39 +01:00
Mikko Rantanen
5054c9717c Document World bounds and Grid bucket size.
Added jsdoc comments for the following properties:

- `world.bounds`
- `grid.bucketWidth`
- `grid.bucketHeight`
2016-04-02 13:49:43 +03:00
Mikko Rantanen
a20a9fbd1c Fix the out-of-bounds check in grid broadphase
`world.bounds` is a normal bounds object with min and max coordinates instead of height and width.
2016-04-02 13:11:26 +03:00
liabru
e7e8c2610e fix issue with Bodies.circle label option, closes #195 2016-02-07 16:22:20 +00:00
liabru
490d232f48 added default for delta parameter in Engine.update, closes #200 2016-02-07 16:06:54 +00:00
liabru
b4e875bf55 fix lint issue 2016-02-07 15:49:09 +00:00
liabru
dbdabcca65 allow passing of pixi objects to Matter.RenderPixi at creation, closes #193 2016-02-07 15:47:23 +00:00
liabru
99dd6c518a fixed rendering of compound bodies 2016-02-07 15:25:38 +00:00
liabru
aaffee3b72 fixed rendering of angle indicators 2016-02-07 15:24:58 +00:00
liabru
8ac06b227a fixes to body opacity rendering 2016-02-07 15:23:58 +00:00
liabru
adcb610f05 added docs for body.render.opacity 2016-02-07 15:21:53 +00:00
liabru
c99e6afb1c Merge branch 'master' of https://github.com/ma1069/matter-js into ma1069-master 2016-02-07 13:02:31 +00:00
liabru
8fcb89342e added SVGPathSeg polyfill, closes #196 2016-02-07 12:46:16 +00:00
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