protected override void Execute(int execID, EntityID entity, ref ColliderComponent collider, ref TransformComponent trans) { Vector3 pos = trans.Matrix.Position; AABox box = AABox.FromCenterAndExtents(pos, collider.Size); colliderManager.Add(box, entity); }
protected ColliderBase(ColliderManager colliderManager) { Components.Add(SceneNode = new SceneNode()); _colliderManager = colliderManager; _colliderManager.Add(this); LocalCenter = Vector2.Zero; }