Richard Davey
f62409d83b
Matter objects now have a reference to the world in which they were added
2017-11-22 14:13:25 +00:00
Richard Davey
f88732cbb7
Added Sleep Start and Sleep End events
2017-11-22 14:13:10 +00:00
Richard Davey
d5a7579f26
Added new Sleep component
2017-11-22 14:12:57 +00:00
Richard Davey
1e399310b3
Added Stack to the Factory
2017-11-22 02:25:42 +00:00
Richard Davey
0543486d16
Added Matter collision events
2017-11-22 02:25:30 +00:00
Richard Davey
7609eb3131
Added new Matter Collision component
2017-11-22 02:25:06 +00:00
Richard Davey
97e55b6aa2
Removed un-needed file.
2017-11-21 16:55:10 +00:00
Richard Davey
3a96caf2f6
Updated the entry point.
2017-11-21 16:55:02 +00:00
Richard Davey
46dc75f06b
New Matter World system, with new setBounds, setGravity, add, create and other helpers.
2017-11-21 16:54:54 +00:00
Richard Davey
4f00477f59
MatterImage and MatterSprite allow you to easily create Game Objects with embedded Matter physics bodies.
2017-11-21 16:54:20 +00:00
Richard Davey
32766ca509
New Matter system handler.
2017-11-21 16:53:55 +00:00
Richard Davey
4702ed7400
New components index.
2017-11-21 16:53:44 +00:00
Richard Davey
b9750bec9d
Updated the Factory so it now generates the new MatterImage and MatterSprite objects as well as basic geometry based bodies.
2017-11-21 16:53:36 +00:00
Richard Davey
1442a2605f
A custom module entry point that removes un-needed components.
2017-11-21 16:53:13 +00:00
Richard Davey
dff633cc62
Added the Bounce Matter component for an easier way to set restitution.
2017-11-21 16:52:54 +00:00
Richard Davey
2e11c18470
Added the Force Matter component including applyForce, forceFrom for a world position and thrust, thrustLeft, thrustRight and thrustBack.
2017-11-21 16:52:39 +00:00
Richard Davey
d8d9eb19c8
Added the Friction Matter component to set the static, air and normal friction a body receives.
2017-11-21 16:52:14 +00:00
Richard Davey
93d246e948
Added the Mass Matter component to set the mass and density of a body.
2017-11-21 16:51:54 +00:00
Richard Davey
a5e8d1e2d7
Added the Sensor Matter component.
2017-11-21 16:51:41 +00:00
Richard Davey
4a89ffa881
Added the Static Matter component to set a body as static if you don't specify it in the options config.
2017-11-21 16:51:33 +00:00
Richard Davey
d79e4a6e0c
Added the Transform Matter component allowing for body scaling and rotation feedback direct from and to the Body.
2017-11-21 16:51:14 +00:00
Richard Davey
12e43c315e
Added the Velocity Matter component
2017-11-21 16:50:56 +00:00
Richard Davey
213b7b4a86
Refactoring matter.js include
2017-11-21 02:04:05 +00:00
Richard Davey
fb83d6dab5
Starting merge of Matter JS.
2017-11-20 16:54:26 +00:00
Richard Davey
fd4f08e4a7
Updated to latest release of matter-js.
2017-11-17 15:29:37 +00:00
Richard Davey
ccb2878102
Physics Group now added to the update list properly
2017-11-16 00:42:03 +00:00
Richard Davey
a40f566a47
Exposed Arcade Physics in the namespace
2017-11-13 01:04:45 +00:00
Richard Davey
620c9d9771
Condensed collide check
2017-11-13 01:04:35 +00:00
Richard Davey
1637272578
Body.setSize will now center the new body onto the gameobject by default (much easier to use!)
2017-11-11 03:52:23 +00:00
Richard Davey
0ba9d5bf35
World is now using a process queue for the colliders
2017-11-09 23:56:28 +00:00
Richard Davey
733ef1cc87
Made velocity line smaller
2017-11-09 23:56:12 +00:00
Richard Davey
f165acfe5f
Colliders can now be toggled from active to inactive.
...
Collider.destroy added (but needs doing in World too).
2017-11-09 17:10:33 +00:00
Richard Davey
b062e204dc
Added new Collider class. Allows you to create automatic collide and overlap checks and callbacks without needing an 'update' function in your Scene.
2017-11-09 17:03:58 +00:00
Richard Davey
0ee93393e3
CollideObjects now handles the total setting and returning.
2017-11-09 17:03:21 +00:00
Richard Davey
916e59ceb9
Uses new debug colors and reset now re-inserts into the static tree.
2017-11-09 16:32:31 +00:00
Richard Davey
ed72a55b24
Added new defaults for debug body colors.
2017-11-09 16:32:09 +00:00
Richard Davey
a7b93b3375
Tidying up and added physicsType.
2017-11-09 16:31:57 +00:00
Richard Davey
beee4b90cf
Now searches either the dynamic or static trees.
2017-11-09 16:31:39 +00:00
Richard Davey
adf7e39697
These objects no longer make their own bodies, it's left up to the Group or Factory classes.
2017-11-09 16:31:26 +00:00
Richard Davey
39a4525d08
Added a Static Physicss Group. A Group that contains only Static Bodies.
2017-11-09 16:31:09 +00:00
Richard Davey
548527928f
Refactored to add in the Utils methods and new static and dynamic body splits.
2017-11-09 15:32:46 +00:00
Richard Davey
92926037b5
Support both Dynamic and Static Body types now.
2017-11-09 15:32:45 +00:00
Richard Davey
12e2a80b1d
Added a new Static Body type to Arcade Physics. These exist in their own RTree which isn't destroyed every frame, allowing for much quicker searching.
2017-11-09 15:32:44 +00:00
Richard Davey
1e628c14d5
Fixed bias setting.
2017-11-09 15:32:44 +00:00
Richard Davey
3c91bbf236
Added in the Arcade Physics utils functions.
2017-11-09 15:32:42 +00:00
Richard Davey
3a46297fcd
Moved World methods into includes folder for tidying-up. Made SeparateXY and GetOverlapXY stand-alone functions for easy updating.
2017-11-09 13:02:55 +00:00
Richard Davey
6bdbd02a4b
Loads of updates to Arcade Physics World
...
Now supports sprite vs. sprite and sprite vs. group collisions and overlaps. Uses the new RTree method instead of QuadTree for much faster operation and much smaller collision code.
2017-11-09 04:03:59 +00:00
Richard Davey
c2f9132d51
New Gravity component
2017-11-09 04:03:10 +00:00
Richard Davey
7992b7c1ac
Lots of updates for AP Body including removal of quadtree, signals, etc
2017-11-09 04:02:59 +00:00
Richard Davey
a84b9d5fcc
Added all of the Arcade Physics image and sprite components
2017-11-09 04:02:31 +00:00
Richard Davey
5a20ea0de4
ArcadeImage and ArcadeSprite are helper classes, much like ImpactImage
2017-11-09 04:01:58 +00:00
Richard Davey
508a524bb0
Added the facing consts
2017-11-09 04:01:30 +00:00
Richard Davey
491ec08e22
The Arcade Physics Factory now creates images, sprites and groups
2017-11-09 04:01:13 +00:00
Richard Davey
6365499c0f
PhysicsGroup is an extension of Group with special Arcade Physics handling properties
2017-11-09 04:00:56 +00:00
Richard Davey
3bbe07afb1
Added the new Arcade Physics Events
2017-11-09 04:00:17 +00:00
Richard Davey
9117b909a8
Ported over Arcade Physics into V3 and started working through the classes and functions.
2017-11-08 17:18:41 +00:00
Richard Davey
7cf82f320b
Removed un-used function.
2017-11-08 17:18:24 +00:00
Richard Davey
6947a68152
Added postUpdate NOOP
2017-11-08 17:17:58 +00:00
Richard Davey
5ee31cf9ff
Starting merge of Arcade Physics
2017-11-06 04:50:07 +00:00
Richard Davey
358a4c8df5
Collision Map is returned and default values added.
2017-09-13 13:15:47 +01:00
photonstorm
fd45182bde
Debug drawing now happens after collision solver.
2017-08-30 15:50:27 +01:00
Alan Smithee
70cbd07b1b
fix casing on components import statement
2017-08-21 18:16:19 +00:00
photonstorm
a734b74ca7
Removed debug work.
2017-08-18 17:01:51 +01:00
photonstorm
e35524a1f5
Added setCollisionMap method.
2017-08-18 16:47:17 +01:00
Richard Davey
665b295c3b
Restructured the Scene folder and moved the plugins and components around
...
Also updated the physicsManager to make it a lot more cleaner and easy to adjust in future
2017-08-18 01:42:14 +01:00
Richard Davey
37bc0dbdcd
Moved scale to BodyScale and fixed GO position
2017-08-17 06:00:38 +01:00
Richard Davey
e36cc68044
2 fixed bodies won't do anything
2017-08-17 04:06:08 +01:00
Richard Davey
100f4fc013
Renamed setSize to setBodySize to avoid conflict with Game Object method
2017-08-17 03:55:17 +01:00
Richard Davey
18c00abe04
Added Friction component
2017-08-17 03:48:39 +01:00
Richard Davey
d8991c5bc5
Added Body.updateCallback
2017-08-17 03:15:02 +01:00
Richard Davey
a481f75e31
Split up parent and gameObject defines so it's clearer and more useful
2017-08-17 02:32:08 +01:00
Richard Davey
7ed21b1acb
Removed dead code and named the walls
2017-08-17 02:07:03 +01:00
Richard Davey
d6fb8d7760
Added setBounds helper method
2017-08-17 01:21:12 +01:00
Richard Davey
d05bd40656
Added SetGameObject component and setSize to Offset
2017-08-17 01:21:01 +01:00
Richard Davey
24b88c2be9
Removed setGameObject method
2017-08-17 01:20:40 +01:00
Richard Davey
15a749d8ea
Added showBody and showVelocity as config options
2017-08-16 23:14:30 +01:00
Richard Davey
67cba936da
World now takes a config object. Cleaner and many more options now supported.
2017-08-16 22:51:46 +01:00
Richard Davey
08eb2d0895
Removed scrollFactor fix, not needed.
2017-08-16 22:10:56 +01:00
Richard Davey
28964e5452
Moved Offset support into component
2017-08-16 22:10:43 +01:00
Richard Davey
a1cc024e5e
setAvsB and setBvsA
2017-08-16 22:10:19 +01:00
Richard Davey
43d470ede7
Now renders the body velocity to the debug graphic
2017-08-16 20:08:05 +01:00
Richard Davey
2b7c12cd75
Added new Debug component and fixed the body offset issue
2017-08-16 19:31:59 +01:00
photonstorm
1f3ae30237
Working through the debug layer.
2017-08-16 17:27:15 +01:00
photonstorm
2d4a730f13
Start of the debug graphics object.
2017-08-16 17:16:23 +01:00
photonstorm
65ebfe719a
Axis passed in from the Solver.
2017-08-16 17:16:15 +01:00
photonstorm
35c667ef33
setCollideCallback added to the Collides component.
2017-08-16 17:15:58 +01:00
photonstorm
000eae4d7d
Axis added to the Collide Event
2017-08-16 17:15:45 +01:00
photonstorm
15f60a7289
Body debug and collision callbacks added
2017-08-16 17:15:35 +01:00
photonstorm
c893c5cb93
Body.reset and Body.destroy added.
2017-08-16 16:30:38 +01:00
photonstorm
8a71a2178c
Added Collide event into the world.
2017-08-16 16:30:28 +01:00
photonstorm
244e6535b5
Body.id was never being assigned, which caused the spatial hash checks to fail, leading to all kinds of weird results. Hours spent debugging this, only for it to be something so simple *facepalm*
2017-08-16 14:03:10 +01:00
Richard Davey
51670f5d26
Lots of new World helpers
2017-08-16 01:20:35 +01:00
Richard Davey
e64981c51d
Added Gravity component and new ImpactBody helper class
2017-08-16 00:30:12 +01:00
Richard Davey
cc781c5ee2
Lots of updates to Impact physics system
...
New Sprite and Image handlers with helper methods.
Updated motion, world and new Factory class.
2017-08-15 23:38:35 +01:00
Richard Davey
13a240789f
Removed all helper methods (moved to Components) and tidied up debug
2017-08-15 23:36:28 +01:00
Richard Davey
2d693a3af0
New Impact Body components
2017-08-15 23:36:00 +01:00
photonstorm
52bb355429
Removing old and incorrect jsdoc blocks ready for first documentation pass.
2017-08-01 13:10:08 +01:00
photonstorm
1a2520aa1b
Removed matter.js build file for now.
2017-07-31 11:48:43 +01:00
photonstorm
9fd9d30baf
Removed un-used file and tidying up.
2017-06-27 15:24:49 +01:00
photonstorm
e688c8758f
Added Body.parent and Body.name properties.
2017-06-27 14:44:12 +01:00