Đã Đó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 thêm: it degrees, work objective, void, protractor, objective s, ios objective iphone, float, create gif animation, uiview, ios position, convert game ios, game iphone convert, ios animation objective, convert ios game, convert gif, ios optional, objective animation iphone, design body game, speed game, iphone couple, need design applied, gif read, iphone optional, ios convert, 143 pixels

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

Mã Dự Án: #1692010

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

simplesshh

Hi, Please check PM.

$200 USD trong 1 ngày
(29 Đánh Giá)
5.8
Brookewer

PLEASE CHECK PMB

$150 USD trong 3 ngày
(0 Đánh Giá)
0.0
JFrZ3T82k

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

$250 USD trong 1 ngày
(0 Đánh Giá)
0.0
furonik

HELLO SIR PLEASE CHECK PM

$180 USD trong 3 ngày
(0 Đánh Giá)
0.0