public override void Ready()
        {
            manager = GetManager<PhysicsManager>();
            manager.Add(this);

            transformComponent = GetComponent<TransformComponent>();
            transform = new PhysicsTransform(transformComponent.Transform);
            transformComponent.Transform = transform;

            CreateBody();
            transform.Body = body;

            if (def.Speed != 0)
            {
                float velocityX = (float)Math.Cos(PhysicsManager.DegreesToRadians(transform.Rotation)) * def.Speed;
                float velocityY = (float)Math.Sin(PhysicsManager.DegreesToRadians(transform.Rotation)) * def.Speed;

                body.LinearVelocity = new Vector2(velocityX, velocityY);
            }
        }
 public override void Ready()
 {
     transform = GetComponent<TransformComponent>();
     physics = GetComponent<IPhysics>();
 }
 public override void Ready()
 {
     renderManager = GetManager<RenderManager>();
     renderManager.Add(this);
     transformComponent = GetComponent<TransformComponent>();
     OnReady();
 }