if I use box2d as physics engine in cocos2djs project, can i package it to android apk? - cocos2d-js

I'm going write a html5 game use cocos2djs, I'm new guy for cocos2djs,
my project will need to package to android apk,
I need physics engine in the game, box2d or Chipmunk which one should I chose?

you can use box 2d or chipmunk2d as you wish you can build android package using any of them. in both the cases you have to declare which physics engine you are using in your project.json.

Related

how to detect human body in Unity3D

I want to detect the whole human body in Unity3D is there any way to do that ? I think there is an easy way to do that in opencv. but I'am pretty new to Unity and I don't know how to use opencv in Unity3D. And can I use OpenCV in Unity3D?
I don't see an easier way to do that if you are new(even if you are pro i think you would still use openCV)
You can use openCv in unity, there is an asset on asset store, it should be easy to implement and with any luck you will have an ready example for detecting a human body. Sorry to say that to you but the asset is paid.
Of course you can always integrate your openCv in Unity with your solution :)
I don't know what is the meaning "I want to detect the whole human body in Unity3D" But sure you can use openCV in unity and you require to write rapper for it and fortunately there is a paid package available at assetstore.
OpenCV for unity by Enox Software
If you have time and want to avoid expensive plugin then, you can write your own integration for unity using this
Using OpenCV with unity blog
OpenCV + Unity3D integration
OpenCV (EmguCV) integration in unity

iOS Plugin Unity

I am currently working on a augmented reality project. I would like to place some virtual objects on a human body. Therefore I created an iOS facetracking app(with openCV; C++) which I want to use as a plugin for Unity. Is there a way to build a framework from an existing iOS app? Or do I have to create a new Xcode project and create a cocoa touch framework and copy paste the code from the app into this framework? I am a little bit confused here. Will the framework have camera access?
My idea was to track the position of a face and to send the position to unity, so that I can place some objects on it. But I do not know how to do that. Can anybody help?
nice greets.
as far as I know you need to make your Unity project, and use assets like OpenCV, but it doesn´t allow you to track the human body (without markers).
About building a fremwork starting from an iOS app, first time I heard that!

Show unity 3D in xcode project

I have a question. Is it possible to load unity project from web, and show it in Xcode project? In some non-fullscreen view? Also, unity must handle touch events. Any ideas, suggestions, links or anything else?
Thanks for advice.
P.S. Sorry for my english.
P.P.S. Main project created in Xcode, without unity.
load unity project from web
What do you mean by that? If you mean a compiled unity webplayer application, forget it.
If you mean a standard non compiled Unity project, note that with the iOS plugin you can compile for mobile Apple hardware. This used to cost a lot of money but now they're giving it out for free (included in Unity free).
Also, unity must handle touch events.
The standard Input Unity class handles touch events with methods such as GetTouch() and variables like touchCount or touches.
Unity is a very big and complex package: integrating it into an existing project may be overwhelmingly difficult. I really don't think there are natives way to do so.
Rather, I'd advise you to port your current XCode project into Unity (which sounds a really strange thing to do if you ask me).
Unity and XCode are 2 completely different tools: the former is useful for Cocoa classes and iOS IDE while the latter is for managing 3d game assets in a real-time interactive environment. I don't see how you can possibly integrate the two things.
Manage your project in a single IDE, it will make things a lot simpler.

Is there any application for design physics for coccos2d game development?

I am new comer in iOS game development, I want to know that is there any mac or windows application available for design scenes , and physics of iOS game development.
like http://maniacdev.com/2011/05/tool-cocosbuilder-drag-and-drop-scene-builder-for-cocos2d/
Thanks,
Try this application LevelHelper and SpritHelper
check this out:
cross platform editor based 2D game development tool.
http://vimeo.com/23291628
http://gamebuilderstudio.com/

How To Set Up Irrlicht Game Engine in Xcode for ios deployment

I know that some people have managed to do this, seeing as there are numerous apps on the app store powered by irrlicht. I have tried to set up an xcode project with all the irrlicht sources and compile and run for ios but can't get it to work. I am using irrlicht 1.7.3. Has anyone managed to do this who would be willing to share how they accomplished this?
I think they are using http://www.rtsoft.com/wiki/doku.php?id=proton
that uses irrlicht.
"Both 2D and 3D games (using the included but optional Irrlicht 3D engine) are supported."

Resources