Beispiel #1
0
        void UpdateTransform(double dt)
        {
            Point Offset = new Point(Direction.X * Velocity * dt, Direction.Y * Velocity * dt);

            BC.AddOffset(Offset);
            TC.AddOffset(Offset);

            RotationAngle += RotationVelocity * dt;
        }
Beispiel #2
0
        public void UpdateTransform(double dt)
        {
            TC.SetPosition(Ship.Center);
            BC.SetPosition(Ship.Center);

            Point offset = new Point(-BC.BoundingRect.Width / 2.0, -BC.BoundingRect.Height / 2.0);

            BC.AddOffset(offset);
        }
Beispiel #3
0
        public override void OnUpdate(double dt)
        {
            Point Offset = new Point(Direction.X * Velocity * dt, Direction.Y * Velocity * dt);

            TC.AddOffset(Offset);
            BC.AddOffset(Offset);

            LifeSpan -= dt;

            if (LifeSpan <= 0.0)
            {
                MustBeDestroyed = true;
            }
        }