Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding cocos2d files to xcode project?

I am doing collision based game.So i added Cocos2d files such as Box2d,FontLabel,cocoslive etc.But while running the project am getting two errors in following code... What is the reason for this.Any changes want to be done in info.plist and build settings.Please help to find.

sweepA.Normalize();
sweepB.Normalize();

this code is in b2TimeOfImpact.cpp(Box2d,collision)class. am getting the error "No member named "Normalize" in 'b2Sweep'".

like image 692
Madhumitha Avatar asked Mar 10 '26 09:03

Madhumitha


1 Answers

do you see coco2ds template in your xcode

http://www.cocos2d-iphone.org/archives/1412

try creating project from scratch through template .

like image 91
Rizwan Avatar answered Mar 12 '26 00:03

Rizwan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!