I have a kinematic body defined and I am using the following code to move it from left to right:
Code: Select all
transform.getOrigin() += btVector3(stuff);
Body->getMotionState()->setWorldTransform(transform);
Body->setWorldTransform(transform);
I've been stuck on this problem for a few days now and I've tried to do everything I could think of and nothing has worked so far. I would greatly appreciate it if someone could lend me a hand with this.
Here's a screenshot of my project in debug mode:
The box is the object I'm shooting at and in this screenshot the box is away from the center so if I were to throw a ball at the box it would go right through
even though it clearly shows the collision box shape around the graphic representation of the box.