Git Product home page Git Product logo

hxcollision's Introduction

#hxcollision : SAT collision for Haxe

##Test / demo

Facts

  • This is a port of Separating Axis Theorem, for collision detection between shapes.
  • Supports polygons and circles, currently.
  • Includes a simple drawing interface for debugging shapes
  • COLLISION ONLY. No physics here. By design :)
  • Contributions welcome

###Other notes

  • not specific to OpenFL
  • See tests/ for a OpenFL ready test project.
  • Includes a drawing class for seeing shapes with OpenFL

More Notes

Getting Started

haxelib install hxcollision

or git clone the repo, from here.

#Recent changes

1.0.5 (Latest repo)

  • Renamed BaseShape to Shape, continued refactoring

1.0.4 (Latest release, haxelib)

  • Renamed Polygon.normalPolygon to Polygon.create
  • Added testShapeList for testing one shape with many
  • Added changes to the test to display the unitVector response (soon to be renamed also)
  • Migrating to more integration friendly api, and more logical order of arguments for shapes.
  • Making rotation on the base shapes absolute (submitted by @grapefrukt).
  • Adding name and data flag to BaseShape

1.0.3

  • Fixed bug in circle vs polygon, when polygon was rotated.
  • Added line raycast with collision shapes
  • Added a custom ShapeDrawer class, for drawing the shapes in a non specific way.
  • Moved to latest haxelib revisions
  • Removed dependency on OpenFL, now completely standalone

1.0.2

  • uncommitted internal fixes

1.0.1

  • Added an option for Polygon.rectangle() to be non-centered

1.0.0

  • Initial project pull and compile/port, functional

hxcollision's People

Contributors

ruby0x1 avatar francoisvn avatar

Watchers

James Cloos avatar Aristide Flandrin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.