我如何对花栗鼠施加力量

发布于 2024-08-23 15:06:07 字数 300 浏览 3 评论 0原文

我如何使用此功能

出现错误或警告

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

update(){

if(touch==true){

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

}
}

我尝试但在控制台中开始触摸时

我发现此错误警告:忽略了 0x0 处的未知对象模块,类型为 0x5dd334

警告:无法找到“_sigtramp”的最小符号 - 回溯可能是不可靠

请帮忙

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

逆光飞翔i 2024-08-30 15:06:07

您可以使用以下方式施加力量:

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

祝你好运

You can apply force using:

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

Good luck

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文