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