s

부드러운 움직임 2

· 17년 전 · 1958

//관성력
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,473
17년 전 조회 1,561
17년 전 조회 1,354
17년 전 조회 1,390
17년 전 조회 1,439
17년 전 조회 1,500
17년 전 조회 1,515
17년 전 조회 1,551
17년 전 조회 1,508
17년 전 조회 1,832
17년 전 조회 3,159
17년 전 조회 3,560
17년 전 조회 1,657
17년 전 조회 1,743
17년 전 조회 1,546
17년 전 조회 2,320
17년 전 조회 3,239
17년 전 조회 1,574
17년 전 조회 1,534
17년 전 조회 1,568
17년 전 조회 1,444
17년 전 조회 1,633
17년 전 조회 1,690
17년 전 조회 1,493
17년 전 조회 2,764
17년 전 조회 1,520
17년 전 조회 1,776
17년 전 조회 1,665
17년 전 조회 1,972
17년 전 조회 1,986
17년 전 조회 1,997
17년 전 조회 2,056
17년 전 조회 1,724
17년 전 조회 1,781
17년 전 조회 1,712
17년 전 조회 2,048
17년 전 조회 1,967
17년 전 조회 1,748
17년 전 조회 1,947
17년 전 조회 1,595
17년 전 조회 1,825
17년 전 조회 2,158
17년 전 조회 2,983
17년 전 조회 2,207
17년 전 조회 1,588
17년 전 조회 2,169
17년 전 조회 2,608
17년 전 조회 1,757
17년 전 조회 2,504
17년 전 조회 1,959
17년 전 조회 1,664
17년 전 조회 1,499
17년 전 조회 2,178
17년 전 조회 3,103
17년 전 조회 2,709
17년 전 조회 1,717
17년 전 조회 3,111
17년 전 조회 2,620
17년 전 조회 2,957
17년 전 조회 2,975
17년 전 조회 2,756
17년 전 조회 2,568
17년 전 조회 1,929
17년 전 조회 2,662
17년 전 조회 4,187
17년 전 조회 2,030
17년 전 조회 4,111
17년 전 조회 2,032
17년 전 조회 1,933
17년 전 조회 2,282
17년 전 조회 2,703
17년 전 조회 1,636
17년 전 조회 1,985
17년 전 조회 2,546
17년 전 조회 2,037
17년 전 조회 1,975
17년 전 조회 1,768
17년 전 조회 1,597
17년 전 조회 1,566
17년 전 조회 1,372
17년 전 조회 1,367
17년 전 조회 1,393
17년 전 조회 1,399
17년 전 조회 1,786
17년 전 조회 1,902
17년 전 조회 2,035
17년 전 조회 3,162
17년 전 조회 2,313
17년 전 조회 1,970
17년 전 조회 2,315
17년 전 조회 2,040
17년 전 조회 3,567
17년 전 조회 1,741
18년 전 조회 1,862
18년 전 조회 1,555
18년 전 조회 2,406
18년 전 조회 3,343
18년 전 조회 2,475
18년 전 조회 1,924
18년 전 조회 3,186