简体   繁体   中英

Dynamic body andkinematic body collision

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() to true 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM