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

392 commits

Author SHA1 Message Date
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
liabru
eed91673f7 Merge branch 'pr/95' 2015-05-22 00:08:54 +01:00
upisfree
96735dd2c4 Some fixes in pixi.js v3 update 2015-05-22 00:10:17 +06:00
liabru
0a73a64520 skip unnecessary loops in Composites.mesh, closes #85 2015-05-21 00:07:30 +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
200fcbe652 added docs 2015-05-20 20:26:39 +01:00
liabru
95eddb01f7 improved traction for Composites.car 2015-05-20 20:22:32 +01:00
upisfree
419d2addca Updated pixi.js to v3 2015-05-20 01:07:04 +06:00
liabru
de4784c492 changed friction impulse limiting approach 2015-05-08 00:14:24 +01:00
liabru
937c7bfcb6 improved friction, added body.frictionStatic 2015-05-03 15:50:38 +01:00
liabru
296059cba2 skip presolve when impulse 0 2015-05-03 13:32:53 +01:00
liabru
ccbb98b8d0 fixed Query.ray, Number.MIN_VALUE seems to cause SAT.collides to fail 2015-04-26 19:44:32 +01:00
liabru
dae684d082 fixed Vertices.fromPath when parsing scientific notation 2015-04-26 19:41:49 +01:00
liabru
bc8840673f changed vertex number render fillstyle 2015-04-24 00:24:20 +01:00
liabru
40905e82a6 increased tollerance on internal edge finding 2015-04-22 01:07:48 +01:00
liabru
6679b9c6c5 fixed RenderPixi for compound bodies 2015-04-21 21:16:26 +01:00
liabru
b34669ed69 fix bug in Composites.stack when skipping bodies 2015-04-21 21:08:15 +01:00
liabru
998ab33c07 changed default minimum area in Bodies.fromVertices 2015-04-21 21:07:09 +01:00
liabru
8031090377 fix angle indicators for compound bodies 2015-04-21 21:04:37 +01:00
liabru
13fcb4b8f9 fixed bug in constraints for compounds 2015-04-21 20:24:21 +01:00
liabru
7db3d281a5 cleanup Svg.pathToVertices 2015-04-13 00:26:16 +01:00
liabru
e8205f84d8 added support for multiple vertices input in Bodies.fromVertices 2015-04-13 00:25:49 +01:00
liabru
4a2c6e7539 refactor Bodies.fromVertices 2015-04-11 22:55:50 +01:00
liabru
98ea7c7955 added Query.point 2015-04-08 23:33:11 +01:00
liabru
e01dd229a9 fixed compound body stability, improved position resolver 2015-04-08 20:31:03 +01:00
liabru
3ed80343e1 changed Render.bodyIds to show all parts 2015-03-09 22:35:59 +00:00
liabru
bf11ee5504 added minimum area check to Bodies.fromVertices 2015-03-09 20:51:07 +00:00
liabru
2b6a8d38af removed collision.supportCorrected instead using bodyB.position, added render.options.showSeparations 2015-03-04 01:03:38 +00: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
9d3755ab6e fix issue of undefined body.parts in constructor 2015-03-03 23:43:24 +00:00
liabru
d082b3adcc render normals pointing out of static bodies 2015-03-02 22:30:38 +00:00
liabru
8bf3278304 cleanup Svg.pathToPoints 2015-03-01 17:26:46 +00:00
liabru
7822ead3bf added Matter.Svg.pathToPoints 2015-03-01 15:52:34 +00:00
liabru
2d1ef0d6d4 removed complexity check in Bodies.fromVertices, enforce clockwise sort 2015-03-01 15:51:45 +00:00
liabru
90adf147e9 implemented static compound bodies 2015-02-28 16:58:00 +00:00
liabru
6a26696fc7 hide axis indicator on compound bodies 2015-02-28 16:00:05 +00:00
liabru
ca75fde09a added internal edge flagging to Bodies.fromVertices 2015-02-25 00:28:11 +00:00
liabru
bc7dfc74b8 fixed support finding logic 2015-02-25 00:13:40 +00:00
liabru
757fffaf20 fixed collision incident and reference body mapping 2015-02-25 00:12:21 +00:00
liabru
b8f3784b76 fix pair properties for compounds 2015-02-24 23:57:38 +00:00
liabru
685f2bdc54 fixed SAT overlap calculation for containment case 2015-02-24 00:01:20 +00:00
liabru
bc9a051e73 fixed collision rendering 2015-02-21 22:19:12 +00:00
liabru
84d9f591aa improved collision detection for compounds 2015-02-10 23:40:05 +00:00
liabru
5ab2bf30f0 added Render.showInternalEdges, added rendering bounds + axes + positions for compounds, fixed rendering vertex numbers 2015-02-10 23:38:03 +00:00
liabru
d6829bf536 added support for compound bodies in MouseConstraint 2015-02-08 00:16:12 +00:00
liabru
87f90655b7 fixes for compound bodies 2015-02-04 23:26:13 +00:00
liabru
10e5d0fcd2 added compound support to Query.ray 2015-02-01 23:59:14 +00:00
liabru
eb29367459 fixed options pass through on Bodies.fromVertices 2015-02-01 23:14:59 +00:00
liabru
0b8efa5c40 added Demo.concave, added Bodies.fromVertices, added Vertices.isConvex, fixed compound properties 2015-02-01 22:55:24 +00:00
liabru
d2f79b4689 further work on compound implementation 2015-02-01 13:57:56 +00:00
liabru
f554d6c9a6 implemented compound bodies, added Body.setParts 2015-02-01 00:03:40 +00:00
liabru
9c139ed9df added Render.vertexNumbers, Render.bodyConvexHulls 2015-01-31 23:52:55 +00:00
liabru
243fce47c9 initial work on compound bodies 2015-01-29 23:25:58 +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
7a477f2088 implemented temporary vector pool 2015-01-24 19:48:27 +00:00
liabru
b327a40e9b added Vector.create 2015-01-24 19:40:23 +00:00
liabru
0583cdbd90 added Render.create warning for omitted element 2015-01-21 00:11:10 +00:00
liabru
b6603ca290 added MouseConstraint.create warning for omitted element 2015-01-21 00:10:39 +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
a940d96886 Fixed missed variable declaration. 2015-01-20 11:56:26 -05:00
PlNG
61855ab875 Missing argument whose default is 1. 2015-01-20 11:53:03 -05:00
PlNG
5b87f47673 Update JSDoc
This might need fixing later, I don't know if I did it right.
2015-01-20 11:49:24 -05: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
d17eb6c9b4 Update JSDoc
This might need fixing later, I don't know if I did it right.
2015-01-20 11:49:17 -05:00
PlNG
25ab2a39b0 Update JSDoc
This might need fixing later, I don't know if I did it right.
2015-01-20 11:49:14 -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
71ef6c2cdb Update JSDoc
This might need fixing later, I don't know if I did it right.
2015-01-20 11:49:08 -05:00
PlNG
18e0642d24 Update JSDoc
This might need fixing later, I don't know if I did it right.
2015-01-20 11:49:03 -05:00
PlNG
611a429746 Spellchecking 2015-01-20 11:07:49 -05:00
PlNG
723ddcf572 Spellchecking 2015-01-20 11:07:44 -05:00
PlNG
65d5d9330b Spellchecking 2015-01-20 11:07:29 -05:00
PlNG
3127654b41 Spellchecking 2015-01-20 11:07:26 -05:00
PlNG
940976acbb Spellchecking 2015-01-20 11:07:23 -05:00
PlNG
c2e0c23539 Spellchecking 2015-01-20 11:07:20 -05:00
PlNG
cd5d4011e6 Spellchecking 2015-01-20 11:07:15 -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
01bc8132f1 removed Render.setBackground (now use render.options) 2015-01-17 14:22:30 +00:00
liabru
0933620b68 fix bug when using timing.isFixed, closes #44 2015-01-01 23:09:46 +00:00
liabru
d249165ea9 added Body.nextCategory 2015-01-01 18:30:16 +00:00
liabru
5888ffcaf6 cleanup 2015-01-01 17:52:18 +00:00
liabru
235b6c8336 added Body.set 2014-12-28 18:35:01 +00:00
liabru
8dea1666f7 added support for sprite scale in RenderPixi, closes #54 2014-12-28 18:23:48 +00:00
liabru
4746eb9348 added support for hidpi rendering 2014-12-28 18:20:54 +00:00
Jonathan Deutsch
f0e74912d5 When updating pairs use current values from bodies as they may have changed 2014-12-04 13:33:44 -08:00
liabru
c254c8d674 added drag events to MouseConstraint, closes #45 2014-09-19 00:31:40 +01:00
liabru
4c4962fb4f added Composite.translate, Composite.rotate, Composite.scale 2014-07-30 17:27:20 +01: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
9f10f88831 updated docs for collisionFilter 2014-07-29 15:30:10 +01:00
liabru
cee8d55a32 added collisionFilter support to MouseConstraint 2014-07-29 13:26:20 +01:00
liabru
5060c7626a tweaks to collision filtering 2014-07-29 13:14:31 +01:00
liabru
3a32bdafd3 Merge branch 'collision-filters' of https://github.com/GustavCarlson/matter-js into GustavCarlson-collision-filters 2014-07-29 10:40:34 +01:00
liabru
04955bbbb1 removed line width change from Body.setStatic 2014-07-27 19:14:12 +01:00
Gustav Carlson
dd4fc65cf2 More fine-grained collision filtering in the style of Box2D 2014-07-22 14:52:16 +02:00
liabru
6e1ab9a24c merge tumult:old_ie_fixes + tweaks 2014-07-12 18:42:39 +01:00
liabru
18a26275d0 appease jshint 2014-07-12 18:14:04 +01:00
liabru
c1964e2de8 fixed scaling on RenderPixi view bounds 2014-07-12 18:10:05 +01:00
Liam Brummitt
6652bb4f34 Merge pull request #31 from mrspeaker/topic/addBounds
added view bounds for RenderPixi
2014-07-12 18:07:32 +01:00