private HashSet<CollisionComponent> inContactWith = new HashSet<CollisionComponent>();
public CollisionComponent(CollisionMask mask){
super();
this.mask = mask;
RelativeComponentPath posPath = new RelativeComponentPath(PositionComponent.class.getName(), this, 1, new int[]{0});
ComponentFilter posFilter = new ComponentPathFilter(posPath);
EventSystem.getInstance().registerEventListener(this, "PositionChanged", new EventSenderComponentFilter(posFilter));
RelativeComponentPath orientPath = new RelativeComponentPath(OrientationComponent.class.getName(), this, 1, new int[]{0});
ComponentFilter orientFilter = new ComponentPathFilter(orientPath);
EventSystem.getInstance().registerEventListener(this, "OrientationChanged", new EventSenderComponentFilter(orientFilter));
}