s

부드러운 움직임 2

· 17년 전 · 1963

//관성력
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에서 이동 됨]
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

태그 필터 (최대 3개) 전체 개발자 소스 기타 mysql 팁자료실 javascript php linux flash 정규표현식 jquery node.js mobile 웹서버 os 프로그램 강좌 썸네일 이미지관련 도로명주소 그누보드5 기획자 견적서 계약서 기획서 마케팅 제안서 seo 통계 서식 통계자료 퍼블리셔 html css 반응형 웹접근성 퍼블리싱 표준화 반응형웹 홈페이지기초 부트스트랩 angularjs 포럼 스크린리더 센스리더 개발자톡 개발자팁 퍼블리셔톡 퍼블리셔팁 기획자톡 기획자팁 프로그램강좌 퍼블리싱강좌
+
제목 글쓴이 날짜 조회
17년 전 조회 1,474
17년 전 조회 1,566
17년 전 조회 1,356
17년 전 조회 1,394
17년 전 조회 1,440
17년 전 조회 1,505
17년 전 조회 1,516
17년 전 조회 1,555
17년 전 조회 1,508
17년 전 조회 1,834
17년 전 조회 3,161
17년 전 조회 3,561
17년 전 조회 1,658
17년 전 조회 1,746
17년 전 조회 1,548
17년 전 조회 2,320
17년 전 조회 3,241
17년 전 조회 1,577
17년 전 조회 1,535
17년 전 조회 1,569
17년 전 조회 1,445
17년 전 조회 1,633
17년 전 조회 1,691
17년 전 조회 1,495
17년 전 조회 2,765
17년 전 조회 1,521
17년 전 조회 1,779
17년 전 조회 1,666
17년 전 조회 1,975
17년 전 조회 1,987
17년 전 조회 1,998
17년 전 조회 2,058
17년 전 조회 1,727
17년 전 조회 1,782
17년 전 조회 1,712
17년 전 조회 2,052
17년 전 조회 1,969
17년 전 조회 1,750
17년 전 조회 1,948
17년 전 조회 1,595
17년 전 조회 1,829
17년 전 조회 2,162
17년 전 조회 2,987
17년 전 조회 2,211
17년 전 조회 1,589
17년 전 조회 2,171
17년 전 조회 2,608
17년 전 조회 1,758
17년 전 조회 2,505
17년 전 조회 1,964
17년 전 조회 1,667
17년 전 조회 1,501
17년 전 조회 2,180
17년 전 조회 3,105
17년 전 조회 2,711
17년 전 조회 1,718
17년 전 조회 3,112
17년 전 조회 2,622
17년 전 조회 2,959
17년 전 조회 2,975
17년 전 조회 2,758
17년 전 조회 2,570
17년 전 조회 1,930
17년 전 조회 2,663
17년 전 조회 4,188
17년 전 조회 2,031
17년 전 조회 4,113
17년 전 조회 2,033
17년 전 조회 1,934
17년 전 조회 2,285
17년 전 조회 2,705
17년 전 조회 1,638
17년 전 조회 1,986
17년 전 조회 2,547
17년 전 조회 2,037
17년 전 조회 1,975
17년 전 조회 1,769
17년 전 조회 1,597
17년 전 조회 1,568
17년 전 조회 1,374
17년 전 조회 1,368
17년 전 조회 1,393
17년 전 조회 1,400
17년 전 조회 1,787
17년 전 조회 1,904
17년 전 조회 2,036
17년 전 조회 3,162
17년 전 조회 2,315
17년 전 조회 1,970
17년 전 조회 2,315
17년 전 조회 2,041
17년 전 조회 3,568
17년 전 조회 1,741
18년 전 조회 1,863
18년 전 조회 1,557
18년 전 조회 2,407
18년 전 조회 3,343
18년 전 조회 2,476
18년 전 조회 1,925
18년 전 조회 3,186