Permalink
Browse files

Fix to work with recent version of luxe collisions

  • Loading branch information...
Zielak committed Aug 7, 2015
1 parent 9c459f1 commit d5abb7ce05c54a5147cbff03dddf0d5f3422122c
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/components/Collider.hx
@@ -5,7 +5,7 @@ import luxe.Component;
import luxe.collision.shapes.Shape;
import luxe.collision.shapes.Circle;
import luxe.collision.shapes.Polygon;
import luxe.collision.CollisionData;
import luxe.collision.data.ShapeCollision;
import luxe.collision.Collision;
import luxe.Entity;

@@ -18,7 +18,7 @@ class Collider extends Component
public var testAgainst:String;

public var hit:Bool = false;
public var coldata:CollisionData;
public var coldata:ShapeCollision;

var arr:Array<Entity>;
var otherComponent:Collider;
@@ -55,7 +55,7 @@ class Collider extends Component

// Test if they collide!
otherComponent = cast(t.get('collider'), Collider);
coldata = Collision.test(shape, otherComponent.shape);
coldata = Collision.shapeWithShape(shape, otherComponent.shape);

if(coldata != null)
{

0 comments on commit d5abb7c

Please sign in to comment.