Đã Đóng

I Need 2 Objective-C++ Box2d Methods

I need 2 methods that virtually do the same thing with different information. As the title suggests I'm using Box2D and iOS to make a game. These methods will be called each time step. Here are the method headers:

- (void) accelerateWithAngle:(float)angle body:(b2Body *)body speed:(float)speed rate:(float)rate;

With this, you should be able to create a nice acceleration on the b2Body given. A couple of notes:

- The Angle is in DEGREES. And should work like a normal protractor.

- The Body has a method called "GetUserData". WIth this method, you can retrieve the UIView attached to the b2Body if needed.

- The Speed is in Pixels. Therefore, you will need to convert it to meters. But a 20 second google search will tell you that there are roughly 3600 pixels per meter.

- The Rate is optional and should be tested for 0. (if 0, the rate isn't going to be applied). If the rate is not 0, then you should use this value to increase the b2body's speed by.

The next method is the same as the previous only, instead of a angle, takes a CGPoint. The b2body should accelerate to that point, and slow down when halfway to that point. like in this animation: [url removed, login to view] Here is the method header for this method:

- (void) accelerateWithAngle:(CGPoint)position body:(b2Body *)body speed:(float)speed rate:(float)rate;

The same notes apply. Please make user you reply with "I love sexy b2Body's". So I know you read this.

Kĩ năng: Lập trình C++, Cocoa, Thiết kế trò chơi, iPhone, Objective C

Xem nhiều hơn: tinypic. com, tinypic com, objective c to c, objective c for ios, objective c com, it degrees, i.t. degrees, c to objective-c, c objective c, work objective, i second you, VOID, protractor, objective s, need 2$, ios objective c iphone, float, Create gif animation, uiview, ios position, convert game ios, game iphone convert, ios animation objective, convert ios game, convert gif

Về Bên Thuê:
( 0 nhận xét ) Orem, United States

ID dự án: #1692010

4 freelancer đang chào giá trung bình $195 cho công việc này


Hi, Please check PM.

$200 USD trong 1 ngày
(29 Nhận xét)


$150 USD trong 3 ngày
(0 Nhận xét)

Custom Software Development - <b><i>Removed by Admin</i></b>

$250 USD trong 1 ngày
(0 Nhận xét)


$180 USD trong 3 ngày
(0 Nhận xét)