我的初始化行为添加如下:
world.add([
Physics.behavior('interactive', { el: renderer.el }),
Physics.behavior('constant-acceleration'),
Physics.behavior('body-impulse-response'),
Physics.behavior('sweep-prune'),
edgeBounce
]);
我想稍后删除“恒定加速度”行为。我读了几篇说使用 remove() 方法的帖子,但使用它我没有得到任何事情发生,如下所示:
world.remove( Physics.behavior('constant-acceleration') );
任何人都可以建议我如何在添加后从世界中删除特定行为?