Beispiel #1
0
 public PolygonCollider(SceneActor actor, Polygon polygon, CollisionWorld collisionWorld, int layer) : base(actor)
 {
     colliderObject = new PolygonColliderObject(polygon, actor.Transform);
     AddSubObject(colliderObject);
     indexInWorld              = collisionWorld.AddCollider(colliderObject, layer);
     this.collisionWorld       = collisionWorld;
     this.layer                = layer;
     colliderObject.OnCollide += ColliderObject_OnCollide;
 }