开发者

How I can apply force in chipmunk

开发者 https://www.devze.com 2022-12-21 17:37 出处:网络
How I can use this function Im try but there are error or warning setupchipmunk(){ ........ } update(){ if(touch==true){

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

精彩评论

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

关注公众号