开发者

How I can apply force in chipmunk

How I can use this function

Im try but there are error or warning

setupchipmunk(){
........
}

update(){

if(touch==true){

cpBodyApplyForce(body1,cpv(val1,val2),cpv(val3,val4));

}
}

when touch begin in console I found this error

warning: Ignored unknown object module at 0x0 with type 开发者_如何学编程0x5dd334

warning: Couldn't find minimal symbol for "_sigtramp" - backtraces may be unreliable

please any help


You can apply force using:

body->f = cpv(dx, dy);

Good luck

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜