【碰撞回弹】
摘要:
/*舞台上有个mc*/package { import flash.display.Sprite; import flash.events.Event; public class Bouncing extends Sprite { private var ball:Ball; private var vx:Number; private var vy:Number; //弹力系数有所损耗所以为-0.7不计损耗为-1 private var bounce:Number = -0.7; public function Bouncing() { init(); } private function 阅读全文