cocos2d / cocos2d-js

cocos2d-x for JS
http://www.cocos2d-x.org
MIT License
1.86k stars 490 forks source link

jsb : setPhysicsBody is bug? #1270

Open ZengyiMa opened 9 years ago

ZengyiMa commented 9 years ago

when i use setPhysicsBody, the console print: jsb: ERROR: File /Users/hujiang/tools/publish/createPrebuiltRuntime/PrebuiltRuntimeJs/frameworks/runtime-src/proj.android/../../js-bindings/bindings/auto/jsb_cocos2dx_auto.cpp: Line: 2143, Function: js_cocos2dx_Node_setPhysicsBody Invalid Native Object JS: /data/data/org.cocos2dx.PrebuiltRuntimeJs/files/debugruntime/src/Level/Level1.js:79:Error: Invalid Native Object

zhaijialong commented 9 years ago

The physics engine of cocos2d-x is not bound now, so this function cannot be used.