For a box, the code should be:
shape = BulletBoxShape(Vec3(0.5, 0.5, 0.5))
node = BulletRigidBodyNode('Box')
node.setMass(1.0)
node.addShape(shape)
np = render.attachNewNode(node)
np.setPos(0, 0, 1)
world.attachRigidBody(node)
The position
is set to 0, 0, 1
.
Which point has the 0, 0, 1
position?
For the eight points of box, which point has the 0, 0, 1
position? Is it d
or the center of box?