使关节碰撞
我用多个节点和距离关节制作了一个动态变化的形状(斑点)。我想知道如何让距离关节与外界发生碰撞。这些节点只是 box2d 圆,它们已经发生碰撞,但是对象可以自由地穿过连接多个圆的弹簧状距离关节。如何阻止物体穿过定距关节,甚至防止定距关节相互接触?谢谢 :)
I have made a dynamically changing shape (blob) out of multiple nodes and distance joints. I would like to know how I can make the distance joints collide with the outside world. The nodes are just box2d circles and they already collide however an object can freely pass through the spring like distance joint connecting the multiple circles. How can I stop objects from passing through the distance joints or even the distance joints from comming in contact with eachother? Thankyou :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有办法做到。关节不发生碰撞。只有带有形状的物体才会在 box2d 中发生碰撞
There is no way to do it. Joints do not collide. Only bodies with shapes attached to them collide in box2d