protected override Velocity ChangeVelocity(Velocity velocity, CollisionPoint collisionPoint)
 {
     velocity.Bounce(Angle);
     return(velocity);
 }
 public Velocity DoHit(Velocity velocity, CollisionPoint collisionPoint)
 {
     OnHit();
     return(ChangeVelocity(velocity, collisionPoint));
 }
 protected abstract Velocity ChangeVelocity(Velocity velocity, CollisionPoint collisionPoint);
Exemple #4
0
        public Velocity ChangeVelocity(Velocity vel, CollisionPoint point)
        {
            var p = outerPlanes.First(outerPlanes => plane == point.CollisionObject);

            return(p.CHangeVelocity(vel, point));
        }