s

부드러운 움직임 2

· 17년 전 · 1974

//관성력
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,484
17년 전 조회 1,575
17년 전 조회 1,362
17년 전 조회 1,408
17년 전 조회 1,446
17년 전 조회 1,515
17년 전 조회 1,522
17년 전 조회 1,567
17년 전 조회 1,517
17년 전 조회 1,848
17년 전 조회 3,169
17년 전 조회 3,564
17년 전 조회 1,665
17년 전 조회 1,754
17년 전 조회 1,554
17년 전 조회 2,325
17년 전 조회 3,250
17년 전 조회 1,588
17년 전 조회 1,547
17년 전 조회 1,578
17년 전 조회 1,453
17년 전 조회 1,644
17년 전 조회 1,699
17년 전 조회 1,503
17년 전 조회 2,771
17년 전 조회 1,533
17년 전 조회 1,781
17년 전 조회 1,678
17년 전 조회 1,981
17년 전 조회 1,993
17년 전 조회 2,002
17년 전 조회 2,065
17년 전 조회 1,732
17년 전 조회 1,787
17년 전 조회 1,721
17년 전 조회 2,058
17년 전 조회 1,981
17년 전 조회 1,755
17년 전 조회 1,955
17년 전 조회 1,607
17년 전 조회 1,837
17년 전 조회 2,169
17년 전 조회 3,000
17년 전 조회 2,220
17년 전 조회 1,594
17년 전 조회 2,181
17년 전 조회 2,619
17년 전 조회 1,764
17년 전 조회 2,512
17년 전 조회 1,975
17년 전 조회 1,678
17년 전 조회 1,508
17년 전 조회 2,186
17년 전 조회 3,119
17년 전 조회 2,718
17년 전 조회 1,724
17년 전 조회 3,121
17년 전 조회 2,627
17년 전 조회 2,961
17년 전 조회 2,984
17년 전 조회 2,766
17년 전 조회 2,577
17년 전 조회 1,938
17년 전 조회 2,668
17년 전 조회 4,197
17년 전 조회 2,036
17년 전 조회 4,118
17년 전 조회 2,040
17년 전 조회 1,940
17년 전 조회 2,294
17년 전 조회 2,715
17년 전 조회 1,642
17년 전 조회 1,996
17년 전 조회 2,558
17년 전 조회 2,047
17년 전 조회 1,984
17년 전 조회 1,778
17년 전 조회 1,602
17년 전 조회 1,579
17년 전 조회 1,389
17년 전 조회 1,375
17년 전 조회 1,401
17년 전 조회 1,407
17년 전 조회 1,792
17년 전 조회 1,910
17년 전 조회 2,043
17년 전 조회 3,169
17년 전 조회 2,321
17년 전 조회 1,976
17년 전 조회 2,322
17년 전 조회 2,050
17년 전 조회 3,580
18년 전 조회 1,751
18년 전 조회 1,867
18년 전 조회 1,567
18년 전 조회 2,417
18년 전 조회 3,348
18년 전 조회 2,488
18년 전 조회 1,932
18년 전 조회 3,194