Commit Graph

3 Commits

Author SHA1 Message Date
Jon Seaman 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 Seaman 756a01ebf2 Circle Rectangle penetration vector fix (#533) 2018-08-01 12:08:54 +10:00
Jon Seaman 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