Hello guys,
I'm having a problem for some time now. I have Kinematic objects that I move using getMotionState()->setWorldTransform(). If if drop or push a dynamic box against this kinematic body, it will penetrate a lot (about half the distance).
What I want to acchieve in our game is to have a Platform using kinematic bodies that I move as an elevator (it goes Up and down). I want to be able to drop a box over it, and I'm expecting the box to be pushed and moved by this kinematic object, but what I get is a weird behaviour of the dynamic box. It doesnt stay in place and starts to "sink" into the kinematic.
Should this be working or I'm trying to do something wrong?
Thanks in advance!
Rob.
Dynamic bodies penetrating Kinematic object
-
- Posts: 229
- Joined: Sun Sep 30, 2007 7:58 am
Re: Dynamic bodies penetrating Kinematic object
I had a similiar problem. For me it was solved when setting the Kinematic bodys mass to 0.
regads
regads
-
- Posts: 5
- Joined: Thu Aug 07, 2008 1:41 pm
Re: Dynamic bodies penetrating Kinematic object
Worked for me! Thanks, weird behaviour