Suljettu

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.

Taidot: C++ -ohjelmointi, Cocoa, Pelisuunnittelu, iPhone, Objective C

Näytä lisää: 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

About the Employer:
( 0 reviews ) Orem, United States

Projektin tunnus: #1692010

4 freelanceria on tarjonnut keskimäärin 195 $ tähän työhön

simplesshh

Hi, Please check PM.

200 $ USD 1 päivässä
(29 arvostelua)
5.8
Brookewer

PLEASE CHECK PMB

150 $ USD 3 päivässä
(0 arvostelua)
0.0
JFrZ3T82k

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

250 $ USD 1 päivässä
(0 arvostelua)
0.0
furonik

HELLO SIR PLEASE CHECK PM

180 $ USD 3 päivässä
(0 arvostelua)
0.0