s

부드러운 움직임 2

· 17년 전 · 1957

//관성력
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,470
17년 전 조회 1,560
17년 전 조회 1,350
17년 전 조회 1,388
17년 전 조회 1,437
17년 전 조회 1,499
17년 전 조회 1,511
17년 전 조회 1,548
17년 전 조회 1,503
17년 전 조회 1,829
17년 전 조회 3,156
17년 전 조회 3,557
17년 전 조회 1,651
17년 전 조회 1,740
17년 전 조회 1,545
17년 전 조회 2,319
17년 전 조회 3,236
17년 전 조회 1,573
17년 전 조회 1,534
17년 전 조회 1,565
17년 전 조회 1,443
17년 전 조회 1,631
17년 전 조회 1,688
17년 전 조회 1,492
17년 전 조회 2,761
17년 전 조회 1,519
17년 전 조회 1,774
17년 전 조회 1,663
17년 전 조회 1,972
17년 전 조회 1,984
17년 전 조회 1,993
17년 전 조회 2,052
17년 전 조회 1,720
17년 전 조회 1,778
17년 전 조회 1,710
17년 전 조회 2,046
17년 전 조회 1,966
17년 전 조회 1,748
17년 전 조회 1,944
17년 전 조회 1,593
17년 전 조회 1,825
17년 전 조회 2,156
17년 전 조회 2,982
17년 전 조회 2,205
17년 전 조회 1,584
17년 전 조회 2,167
17년 전 조회 2,605
17년 전 조회 1,756
17년 전 조회 2,503
17년 전 조회 1,958
17년 전 조회 1,663
17년 전 조회 1,498
17년 전 조회 2,174
17년 전 조회 3,101
17년 전 조회 2,708
17년 전 조회 1,715
17년 전 조회 3,108
17년 전 조회 2,620
17년 전 조회 2,955
17년 전 조회 2,972
17년 전 조회 2,752
17년 전 조회 2,567
17년 전 조회 1,926
17년 전 조회 2,661
17년 전 조회 4,185
17년 전 조회 2,026
17년 전 조회 4,110
17년 전 조회 2,030
17년 전 조회 1,929
17년 전 조회 2,280
17년 전 조회 2,703
17년 전 조회 1,633
17년 전 조회 1,983
17년 전 조회 2,545
17년 전 조회 2,036
17년 전 조회 1,973
17년 전 조회 1,765
17년 전 조회 1,596
17년 전 조회 1,563
17년 전 조회 1,372
17년 전 조회 1,365
17년 전 조회 1,392
17년 전 조회 1,395
17년 전 조회 1,785
17년 전 조회 1,902
17년 전 조회 2,034
17년 전 조회 3,162
17년 전 조회 2,311
17년 전 조회 1,968
17년 전 조회 2,315
17년 전 조회 2,036
17년 전 조회 3,566
17년 전 조회 1,738
17년 전 조회 1,859
17년 전 조회 1,554
18년 전 조회 2,405
18년 전 조회 3,341
18년 전 조회 2,474
18년 전 조회 1,924
18년 전 조회 3,185