s

부드러운 움직임 2

· 17년 전 · 2125

//관성력
MovieClip.prototype.inertiaMove = function(widthX,heightY,g,fric){
        if(this._x + this.speedX > widthX - this._width/2){
                this.speedX = -1*this.speedX;
                this._x = widthX - this._width/2;
        }else if(this._x + speedX <0 + this._width/2){
                this.speedX = -1*this.speedX;
                this._x = 0 + this._width/2;
        }else{
                this._x += this.speedX ;
        }
        if(this._y + this.speedY > heightY - this._height/2){
                this.speedY = -1*this.speedY;
                this._y = heightY - this._height/2;
        }else if(this._y + this.speedY <0 + this._height/2){
                this.speedY = -1*this.speedY;
                this._y = 0 + this._height/2;
        }else{
                this._y += this.speedY;
        }
       
        this.speedY = this.speedY + g;
        this.speedX = fric*this.speedX;
        this.speedY = fric*this.speedY;
};

//포물선운동
MovieClip.prototype.parabolaMove = function(){
        this.vy = this.vy + this.g;
        this._x = this._x + this.vx;
        this._y = this._y + this.vy;
};

[이 게시물은 관리자님에 의해 2011-10-31 16:50:06 Flash에서 이동 됨]
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
17년 전 조회 1,609
17년 전 조회 1,709
17년 전 조회 1,506
17년 전 조회 1,539
17년 전 조회 1,574
17년 전 조회 1,663
17년 전 조회 1,666
17년 전 조회 1,703
17년 전 조회 1,637
17년 전 조회 1,988
17년 전 조회 3,296
17년 전 조회 3,705
17년 전 조회 1,783
17년 전 조회 1,898
17년 전 조회 1,680
17년 전 조회 2,441
17년 전 조회 3,371
17년 전 조회 1,700
17년 전 조회 1,681
17년 전 조회 1,715
17년 전 조회 1,578
17년 전 조회 1,758
17년 전 조회 1,820
17년 전 조회 1,639
17년 전 조회 2,900
17년 전 조회 1,667
17년 전 조회 1,918
17년 전 조회 1,805
17년 전 조회 2,132
17년 전 조회 2,127
17년 전 조회 2,136
17년 전 조회 2,209
17년 전 조회 1,888
17년 전 조회 1,934
17년 전 조회 1,849
17년 전 조회 2,192
17년 전 조회 2,117
17년 전 조회 1,894
17년 전 조회 2,095
17년 전 조회 1,753
17년 전 조회 1,979
17년 전 조회 2,303
17년 전 조회 3,129
17년 전 조회 2,350
17년 전 조회 1,741
17년 전 조회 2,310
17년 전 조회 2,763
17년 전 조회 1,892
17년 전 조회 2,660
17년 전 조회 2,126
17년 전 조회 1,828
17년 전 조회 1,650
17년 전 조회 2,331
17년 전 조회 3,261
17년 전 조회 2,851
17년 전 조회 1,864
17년 전 조회 3,252
17년 전 조회 2,770
17년 전 조회 3,124
17년 전 조회 3,133
17년 전 조회 2,905
17년 전 조회 2,727
17년 전 조회 2,071
17년 전 조회 2,807
17년 전 조회 4,340
18년 전 조회 2,176
18년 전 조회 4,273
18년 전 조회 2,189
18년 전 조회 2,075
18년 전 조회 2,440
18년 전 조회 2,842
18년 전 조회 1,792
18년 전 조회 2,144
18년 전 조회 2,711
18년 전 조회 2,191
18년 전 조회 2,128
18년 전 조회 1,923
18년 전 조회 1,755
18년 전 조회 1,734
18년 전 조회 1,516
18년 전 조회 1,535
18년 전 조회 1,538
18년 전 조회 1,544
18년 전 조회 1,945
18년 전 조회 2,061
18년 전 조회 2,183
18년 전 조회 3,323
18년 전 조회 2,475
18년 전 조회 2,122
18년 전 조회 2,478
18년 전 조회 2,206
18년 전 조회 3,732
18년 전 조회 1,881
18년 전 조회 2,016
18년 전 조회 1,715
18년 전 조회 2,574
18년 전 조회 3,500
18년 전 조회 2,616
18년 전 조회 2,087
18년 전 조회 3,348