s

부드러운 움직임 2

· 17년 전 · 1976

//관성력
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,576
17년 전 조회 1,366
17년 전 조회 1,410
17년 전 조회 1,447
17년 전 조회 1,516
17년 전 조회 1,522
17년 전 조회 1,569
17년 전 조회 1,517
17년 전 조회 1,850
17년 전 조회 3,169
17년 전 조회 3,567
17년 전 조회 1,667
17년 전 조회 1,755
17년 전 조회 1,555
17년 전 조회 2,329
17년 전 조회 3,253
17년 전 조회 1,588
17년 전 조회 1,547
17년 전 조회 1,582
17년 전 조회 1,455
17년 전 조회 1,645
17년 전 조회 1,699
17년 전 조회 1,503
17년 전 조회 2,772
17년 전 조회 1,535
17년 전 조회 1,782
17년 전 조회 1,679
17년 전 조회 1,982
17년 전 조회 1,994
17년 전 조회 2,005
17년 전 조회 2,067
17년 전 조회 1,732
17년 전 조회 1,787
17년 전 조회 1,721
17년 전 조회 2,059
17년 전 조회 1,981
17년 전 조회 1,758
17년 전 조회 1,955
17년 전 조회 1,607
17년 전 조회 1,838
17년 전 조회 2,169
17년 전 조회 3,001
17년 전 조회 2,222
17년 전 조회 1,596
17년 전 조회 2,183
17년 전 조회 2,619
17년 전 조회 1,764
17년 전 조회 2,514
17년 전 조회 1,977
17년 전 조회 1,679
17년 전 조회 1,508
17년 전 조회 2,187
17년 전 조회 3,119
17년 전 조회 2,718
17년 전 조회 1,725
17년 전 조회 3,122
17년 전 조회 2,628
17년 전 조회 2,962
17년 전 조회 2,986
17년 전 조회 2,766
17년 전 조회 2,578
17년 전 조회 1,938
17년 전 조회 2,668
17년 전 조회 4,200
17년 전 조회 2,037
17년 전 조회 4,119
17년 전 조회 2,044
17년 전 조회 1,940
17년 전 조회 2,296
17년 전 조회 2,715
17년 전 조회 1,644
17년 전 조회 1,997
17년 전 조회 2,558
17년 전 조회 2,049
17년 전 조회 1,985
17년 전 조회 1,779
17년 전 조회 1,603
17년 전 조회 1,581
17년 전 조회 1,389
17년 전 조회 1,375
17년 전 조회 1,401
17년 전 조회 1,407
17년 전 조회 1,792
17년 전 조회 1,910
17년 전 조회 2,044
17년 전 조회 3,169
17년 전 조회 2,322
17년 전 조회 1,978
17년 전 조회 2,323
17년 전 조회 2,051
17년 전 조회 3,581
18년 전 조회 1,754
18년 전 조회 1,868
18년 전 조회 1,569
18년 전 조회 2,418
18년 전 조회 3,348
18년 전 조회 2,489
18년 전 조회 1,933
18년 전 조회 3,195