[英]Box2d Collision issue
I'm creating a physics game and in my game there are many kinds of balls. 我正在创建一个物理游戏,在我的游戏中有很多球。
now, there's a special ball that suppose to pass through walls, but other balls 现在,有一个特殊的球应该穿过墙壁,但是其他的球
can collide with it (so only walls wouldn't "feel" the special ball). 可以与它碰撞(因此只有墙壁不会“感觉”到特殊的球)。
I didn't figure how to id exactly. 我不知道如何准确地识别。
what is the best practice? 最佳做法是什么?
thanks, 谢谢,
sock.socket 袜子
您可以在球对墙碰撞检查逻辑上附加条件,以仅在球不是特殊类型时检查/允许弹跳
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.