How do I make dynamic body not collidable with kinematic body. I still want to check if there would be a collision but dynamic body should move trough him upon collision. (And i also like to make kinematic body invisible with debug draw;is that possible)
You can set isSenor()
to true
for kinematic body.
bodyDef.isSensor = true;
set
isSensor()
totrue
when you want to know when objects will collide without triggering a collision response.
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.