크리에이티브 커먼즈 라이선스
Creative Commons License
오늘 도 짬내서 코딩을 좀 했다능. 공개해도 될꺼 같아서 일단 올려본다능.


readme.txt
ape_ruby is ruby port of APE. APE(Actionscript Physics Engine) is a free 
AS3 open source 2D physics engine, released under the MIT License. 

ape_ruby supports all features of original Actionsciprt version, and 
slightly modified for support serveral rendering methods. It is released 
under MIT License. 

Because of my lack of English writing skill, there is no documents for 
ape_ruby. But, you can use the documents for original version.

Have a fun.

-- DMW(filepang@lycos.co.kr, http://www.filepang.co.kr) --

Copyright notice
Copyright (c) 2010 DMW 

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

download link

저작자 표시 비영리 동일 조건 변경 허락

댓글을 달아 주세요

  1. Favicon of http://tcltk.co.kr BlogIcon 2010/07/07 16:08  댓글주소  수정/삭제  댓글쓰기

    우왕~ 굿이라능 >.<
    Tcl 바인딩도 해주세용.

크리에이티브 커먼즈 라이선스
Creative Commons License
간만에 시간내서 버그 좀 잡았다능

오늘 야구장 갔는데 한화가 이겼음 >_<



코드를 좀 더 다듬은 후에 배포하면 될꺼 같은 느낌
저작자 표시 비영리 동일 조건 변경 허락

댓글을 달아 주세요

  1. Favicon of http://lazygyu.tistory.com BlogIcon LazyGyu 2010/05/20 18:54  댓글주소  수정/삭제  댓글쓰기

    바퀴에 점이라도 하나 찍어주세요 ㅠㅠ 회전하는거 보고 싶단 말이에요 ㅠㅠ

크리에이티브 커먼즈 라이선스
Creative Commons License
depth_b 를 depth_a로 한 글자 잘못쳐서 거의 일주일동안 버그 찾았다능 -_-;;; 아무튼 아래는 간단한 테스트 동영상이다.




이제 아래 3 클래스만 테스트해보면 된다. 예상은 잘 될꺼 같다능.
WheelParticle
SpringConstraint
SpringConstraintParticle

>_<
저작자 표시 비영리 동일 조건 변경 허락

댓글을 달아 주세요

  1. sloth 2010/03/21 04:43  댓글주소  수정/삭제  댓글쓰기

    이제 depth_alpha, depth_bravo, depth_charlie 요로케
    군바리안표기법을;;; 암튼 횽 멋지다능

  2. 유노 2010/04/04 09:52  댓글주소  수정/삭제  댓글쓰기

    스타3 만드는 거임? 우걱우걱

크리에이티브 커먼즈 라이선스
Creative Commons License
오늘 포팅한 클래스들
APE::SpringConstraintParticle 
APE::WheelParticle 
APE::RimParticle 
APE::Graphics  <- 빼 버렸다. 필요업ㅂ을꺼 같다.

지금까지 포팅한 클래스들
APE::AbstractCollection
APE::AbstractConstrain
APE::AbstractItem
APE::AbstractParticle
APE::APEngine
APE::Collision
APE::CollisionDetector
APE::CollisionResolver
APE::Composite
APE::Group
APE::MathUtil
APE::Vector
APE::Interval
APE::CircleParticle
APE::RectangleParticle
APE::CollisionResolver
APE::Composite
APE::Group
APE::MathUtil
APE::Vector
APE::Interval
APE::CircleParticle
APE::RectangleParticle
APE::SpringConstraint

앞으로 포팅해야 할 클래스들
업ㅂ다
 
앞으로 해야 될 일들
디버깅 >_<


테스트 화면


저작자 표시 비영리 동일 조건 변경 허락
TAG Ape, ruby, SDL

댓글을 달아 주세요

  1. Favicon of http://www.filepang.co.kr BlogIcon DMW 2010/03/14 19:32  댓글주소  수정/삭제  댓글쓰기

    ... 버그 쩐다 -_-

크리에이티브 커먼즈 라이선스
Creative Commons License
오늘 포팅한 클래스들
APE::CollisionResolver
APE::Composite
APE::Group
APE::MathUtil
APE::Vector
APE::Interval
APE::CircleParticle
APE::RectangleParticle
APE::SpringConstraint <- 작업중

지금까지 포팅한 클래스들
APE::AbstractCollection
APE::AbstractConstrain
APE::AbstractItem
APE::AbstractParticle
APE::APEngine
APE::Collision
APE::CollisionDetector
APE::CollisionResolver
APE::Composite
APE::Group
APE::MathUtil
APE::Vector
APE::Interval
APE::CircleParticle
APE::RectangleParticle

앞으로 포팅해야 할 클래스들
APE::SpringConstraint <- 나머지를 끝내야 됨
APE::SpringConstraintParticle
APE::WheelParticle
APE::RimParticle
APE::Graphics  <- 그래픽 관련 로직들을 모아놓은 클래스 직접 작성해야 한다.
 

현재까지 진행상황
대략 40%

그냥 넣어본 그림

더보기



저작자 표시 비영리 동일 조건 변경 허락
TAG Ape, ruby, SDL

댓글을 달아 주세요

크리에이티브 커먼즈 라이선스
Creative Commons License

오늘 포팅한 클래스들
APE::AbstractCollection
APE::AbstractConstrain
APE::AbstractItem
APE::AbstractParticle
APE::APEngine
APE::Collision
APE::CollisionDetector


앞으로 포팅해야 할 클래스들
APE::CollisionResolver
APE::Composite
APE::Group
APE::CircleParticle
APE::RectangleParticle
APE::SpringConstraint
APE::SpringConstraintParticle
APE::WheelParticle
APE::RimParticle
APE::MathUtiil
APE::Vector
APE::Interval

그리고 그래픽 관련 로직들을 모아놓은
APE::Graphics

를 작성해야한다. 이건 포팅이 아니구 직접 짜야된다능.

....아직 많이 남았다

힘내서 해야지

저작자 표시 비영리 동일 조건 변경 허락
TAG Ape, ruby, SDL

댓글을 달아 주세요

크리에이티브 커먼즈 라이선스
Creative Commons License


  1차로 정리가 끝난 문서다. 이제 저기서 사용하고 있는 플래시 내장 라이브러리를 분석할 차래라능. 텝사이즈는 4가 개념이라능. 아무튼 분석할 라이브러리의 리스트는 다음과 같다.


  플래시 내장 라이브러리 분석이 끝나면 이 라이브러리들의 기능을 Ruby/SDL 용으로 구현하는 일을 하면 될꺼 같다능. 인턴때문에 대전에 와있어서 컴터가 업ㅂ어서 피시방에서 작업하려니 죽겠다능 -_-;;
저작자 표시 비영리 동일 조건 변경 허락
TAG Ape, ruby, SDL

댓글을 달아 주세요

  1. Favicon of http://www.filepang.co.kr BlogIcon DMW 2009/06/27 22:52  댓글주소  수정/삭제  댓글쓰기

    아.. +는 public 이고 -는 private 이고 &는 internal 이라능

  2. Favicon of http://www.filepang.co.kr BlogIcon DMW 2009/06/29 06:19  댓글주소  수정/삭제  댓글쓰기

    생각해보니까.....저 플래시 라이브러리들은 신경꺼도 될꺼 같음. 다음 쉬는날부터 코딩하기 시작할꺼심.

크리에이티브 커먼즈 라이선스
Creative Commons License
APE(Actionscript Physics Engine) 는 AS3용 오픈소스 2D 물리엔진이라능.
공식 홈페이지는 이곳 http://www.cove.org/ape/index.htm (가보면 데모가 2개 올라와 있는데 매우 재미있다. 한번씩 해보자능)이고 아래와 같은 특징을 가지고 있심.

CircleParticles
-fixed or non-fixed
-variable mass, elasticity, and surface friction

RectangleParticles
-rotatable
-fixed or non-fixed
-variable mass, elasticity, and surface friction

WheelParticles
-traction and angular velocity
-fixed or non-fixed
-variable mass, elasticity, and surface friction

SpringConstraints
-stiffness
-collidable or non-collidible
-collidable constraints have variable width and scale

Grouping
-Composite class may contain Particles, and Constraints
-Group class may contain Particles, Constraints, and Composites

Collision
-multisampling
-static collision tests

Licensing
-non restrictive MIT License

공식 홈피를 가보면 c++ sdl 과 java로 포팅이 되있는걸 볼 수 있다능.
지금 내가 하고 있는일은 이놈을 Ruby/SDL 용으로 포팅하는거라능.

 지금은 코드분석중이라능. 19개의 클래스들의 상속 관계랑 각 클래스의 멤버변수, 멤버함수들의 리스트를 작성하고 있는중임. 지금 14개 클래스의 리스트를 작성해 놨다능. 나머지 5개의 클래스에 대해서 리스트 작성이 끝나면 액션 스크립트 내장 라이브러리 의존하는 코드들을 분석하는 일을 하려고 생각중임.

현재 진척도 : 대략 10%

글쓰면서 찾아봤는데 라이센스 문제는 신경꺼도 될꺼 같다.
http://ko.wikipedia.org/wiki/MIT_%ED%97%88%EA%B0%80%EC%84%9C
저작자 표시 비영리 동일 조건 변경 허락
TAG Ape, ruby, SDL, 뻘글

댓글을 달아 주세요

  1. Favicon of http://www.filepang.co.kr BlogIcon DMW 2009/06/21 22:13  댓글주소  수정/삭제  댓글쓰기

    오늘 리스트작성이 모두 끝났다.