In BasicDemo, btStaticPlane is used as ground. It transform is declared as follows:
groundTransform.setOrigin(btVector3(0,-56,0));
Then some boxes are situated on it and the simulation starts. The boxes smallest y coordinate is about -5. I'm trying to get the btStaticPlane and the boxes position and obviously when I use the motion state of the body and the origin with its transform I obtain -56 in the btStaticPlane and the boxes coordinates are much bigger but in the glut visualization appear that they are so near. If I try to work with the distance to the ground I have so much problems.
Why has the btStaticPlane shape y coordinate value -56? How can I know its position from the boxes?
Thanks
btStaticPlaneShape position
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: btStaticPlaneShape position
We can make it zero if you prefer, it was just some arbitrary value.inakin wrote:Why has the btStaticPlane shape y coordinate value -56? How can I know its position from the boxes?
Thanks,
Erwin