Are Ghost Objects always AABB? I've been trying to use a ghost object to detect when an object goes through a hole and have it working when the ghost object is aligned with the world coordinate system. When I try to rotate the object with the hole and rotate the ghost object by the same amount, it appears that the detection is still based on the AABB of the ghost object.
Is there a way to rotate the ghost object so that the detection is not AABB?
Question about Ghost Objects
-
- Posts: 171
- Joined: Sun Jan 17, 2010 4:47 am
Re: Question about Ghost Objects
I had a hair pulling experience with getting Ghost objects to do actual shape collision checking in my project. In short, yes. By default all ghost objects only do collisions based on their AABB. You have to add logic to do shape checks yourself. Here is the thread where I had my issues and should be able to provide some insights:
http://bulletphysics.org/Bullet/phpBB3/ ... f=9&t=7053
If you need any further information, just ask.
http://bulletphysics.org/Bullet/phpBB3/ ... f=9&t=7053
If you need any further information, just ask.
-
- Posts: 8
- Joined: Sat Apr 30, 2011 2:28 pm
Re: Question about Ghost Objects
Thanks for the very quick reply. I actually found that thread a few minutes before posting my question. I wasn't sure I understood everything in the thread, so I posted the simple question.
Thanks for your help. I'll try implementing the additional checks you outlined.
Thanks again.
Thanks for your help. I'll try implementing the additional checks you outlined.
Thanks again.