Commit Graph
17 Commits
Author SHA1 Message Date
Jon SeamanandDylan Wilson 31b77e5689 Improve collision demo (#612)
* Replace square in center of level with stationary ball

* Improve collision demo

- Collisions between balls are smoother.
- Fixed an issue with collision bounds not being set properly. (This is what made the collision appear unsmooth)
2019-07-01 14:52:17 +10:00
Jon SeamanandDylan Wilson 756a01ebf2 Circle Rectangle penetration vector fix (#533) 2018-08-01 12:08:54 +10:00
Dylan Wilson 50bf89faf5 made the monogame pcl a private asset in the nuget packages and fixed a few things in the cake build 2018-07-10 22:12:55 +10:00
Jon SeamanandDylan Wilson 862b64ac7b Rectangles now collide with circles (#513)
* Added CircleF and RectangleF intersection method

* Simplified shape implementation

* Docs

* Collision system uses shapes

* QuadTree collision allows circles

* ICollisionActor remove setter

+semver: patch

* Added position to IShapeF

+semver: patch

* Added CollisionComponent contains

* Fix penetration vector between circles

* Circle Rectangle penetration vector

* Added test for Rectangle Rectangle Collision

* Add docs, fix test
2018-06-14 21:27:37 +10:00
Jon SeamanandDylan Wilson ce9fc2459b QuadTree Collision Library (#504)
* Created unit test project for collisions.

* Started on tests

* Created unit test project for collisions.

* Started on tests

* Update collision test

* CollisionInfo docs

* More docs for CollisionGrid and Cell

* Fix obsolete warning for RectangleF.Intersect

* Summary for CollisionGrid and CollisionGridCell

* QuadTree collision implemented

 - Ported from C++ from Game Physics Cookbook chapter 6, 2D Optimizations

* Small refactor for QuadTree naming

* First tests for QuadTree

* Fix test

* COde Cleanup

* Added DefaultMaxObjectsPerNode

* Add missed Query code

* Insert Tests and bugfix

* Fix bug with QuadTree.Shake

* Fix namespaces

* Query tests and fix

* Additional test for Query

* Initial QuadTreeCollision Component

* Basic collision demo working

* Spikey ball colliding with walls

* Improved the collision demo

* Update QuadTree

* Added comment for CollisionComponent

* Ignore test that needs fixed

* Rename QuadTree to Quadtree

* Fix penetration vector

* Update to 2.0 and xUnit
2018-05-30 20:26:34 +10:00
Dylan Wilson 2791d4347a do away with the old nuspec files 2018-05-24 21:36:15 +10:00
Dylan Wilson 2ec6df4db4 added nuget package metadata 2018-05-17 22:25:07 +10:00
Dylan Wilson 0121a2b9c5 dotnet standard 2.0 baby! 2018-05-09 21:58:40 +10:00
Dylan Wilson ad03ad3251 removed most of the compiler warnings about missing XML docs 2018-02-07 22:13:43 +10:00
Jon SeamanandDylan Wilson 5470a52e05 Added XML docs to NuGet (#460) 2018-02-01 20:14:59 +10:00
Lucas Girouard-StranksandDylan Wilson a1f8566a46 Geometric Primitives Cleanup (#346)
* CircleF and RectangleF

* Fix build errors
2017-03-12 20:32:07 +10:00
Lucas Girouard-StranksandDylan Wilson 3a164d5385 Tiled Fix (#349)
* Tiled fix.

* Remove bat file.
2017-03-05 09:18:11 +10:00
Dylan Wilson a75d8deb5a enforce c# 6.0 language version at least until VS2017 comes out of RC 2017-02-09 22:45:52 +10:00
Lucas Girouard-StranksandDylan Wilson 9e359fb750 Tiled Rework (#331)
* Tiled Rework

* fix failing tests

* really fix failing tests
2017-01-18 20:46:38 +10:00
Lucas Girouard-StranksandDylan Wilson a45518a925 Tiled library (#322)
* Tiled library

* remove test project
2016-12-13 21:40:22 +10:00
Lucas Girouard-StranksandDylan Wilson d0c621d0dc Create Graphics library. (#316)
* Fix BoundingRect unit tests.

* Create `graphics` library.
2016-11-27 22:51:59 +10:00
Dylan WilsonandGitHub de5b4e495b split collisions into a separate project (#308) 2016-11-17 20:20:52 +10:00