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
您可以在球对墙碰撞检查逻辑上附加条件,以仅在球不是特殊类型时检查/允许弹跳
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.