Hi,
I have a kinematic sphere that i move around myself using a kinematic motion state. I would like to check for a collision with a static body. I am not looking for collision response. Just that a collision happened.
Rather than write my own collision detection code just to test for kinematic <-> static collisions. Does bullet record somewhere that a kinematic body and a static body overlap?
Kinematic - static body collisions...how to check for them?
-
- Posts: 4
- Joined: Sat Aug 09, 2014 6:45 pm
-
- Posts: 4
- Joined: Sat Aug 09, 2014 6:45 pm
Re: Kinematic - static body collisions...how to check for th
I have found out that you can use a ghost object to act as a sensor to detect all collisions and process just the ones you want.
Seems a bit cpu intensive though. Is there a way to reduce its impact on the frame rate?
I have 30 rigid bodies in my scene. Only the 1 kinematic body needs to know about collisions with the rest. The other 29 don't need to collide with each other.
Seems a bit cpu intensive though. Is there a way to reduce its impact on the frame rate?
I have 30 rigid bodies in my scene. Only the 1 kinematic body needs to know about collisions with the rest. The other 29 don't need to collide with each other.