s

부드러운 움직임 2

· 17년 전 · 1969

//관성력
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,480
17년 전 조회 1,570
17년 전 조회 1,358
17년 전 조회 1,404
17년 전 조회 1,444
17년 전 조회 1,511
17년 전 조회 1,518
17년 전 조회 1,563
17년 전 조회 1,513
17년 전 조회 1,842
17년 전 조회 3,165
17년 전 조회 3,563
17년 전 조회 1,662
17년 전 조회 1,749
17년 전 조회 1,552
17년 전 조회 2,325
17년 전 조회 3,246
17년 전 조회 1,583
17년 전 조회 1,540
17년 전 조회 1,576
17년 전 조회 1,451
17년 전 조회 1,639
17년 전 조회 1,696
17년 전 조회 1,499
17년 전 조회 2,768
17년 전 조회 1,528
17년 전 조회 1,779
17년 전 조회 1,674
17년 전 조회 1,979
17년 전 조회 1,990
17년 전 조회 2,000
17년 전 조회 2,065
17년 전 조회 1,731
17년 전 조회 1,786
17년 전 조회 1,719
17년 전 조회 2,056
17년 전 조회 1,974
17년 전 조회 1,752
17년 전 조회 1,951
17년 전 조회 1,599
17년 전 조회 1,832
17년 전 조회 2,166
17년 전 조회 2,993
17년 전 조회 2,219
17년 전 조회 1,592
17년 전 조회 2,175
17년 전 조회 2,614
17년 전 조회 1,762
17년 전 조회 2,510
17년 전 조회 1,970
17년 전 조회 1,674
17년 전 조회 1,507
17년 전 조회 2,184
17년 전 조회 3,111
17년 전 조회 2,716
17년 전 조회 1,721
17년 전 조회 3,117
17년 전 조회 2,625
17년 전 조회 2,961
17년 전 조회 2,979
17년 전 조회 2,761
17년 전 조회 2,574
17년 전 조회 1,936
17년 전 조회 2,667
17년 전 조회 4,194
17년 전 조회 2,033
17년 전 조회 4,118
17년 전 조회 2,038
17년 전 조회 1,937
17년 전 조회 2,290
17년 전 조회 2,709
17년 전 조회 1,642
17년 전 조회 1,993
17년 전 조회 2,555
17년 전 조회 2,044
17년 전 조회 1,979
17년 전 조회 1,773
17년 전 조회 1,599
17년 전 조회 1,575
17년 전 조회 1,385
17년 전 조회 1,369
17년 전 조회 1,397
17년 전 조회 1,404
17년 전 조회 1,790
17년 전 조회 1,908
17년 전 조회 2,041
17년 전 조회 3,165
17년 전 조회 2,320
17년 전 조회 1,974
17년 전 조회 2,318
17년 전 조회 2,048
17년 전 조회 3,577
18년 전 조회 1,747
18년 전 조회 1,866
18년 전 조회 1,566
18년 전 조회 2,414
18년 전 조회 3,345
18년 전 조회 2,482
18년 전 조회 1,929
18년 전 조회 3,192