Hi,
I know it can take “Box” like:
self.node = BulletRigidBodyNode("Box")
But how do you know other possible values?
Hi,
I know it can take “Box” like:
self.node = BulletRigidBodyNode("Box")
But how do you know other possible values?
As far as I’m aware, the parameter that’s passed to BulletRigidBodyNode is much like the parameter that’s passed to most PandaNodes: simply a name, of little significance to the engine.
I imagine that any ordinary string should work, although I don’t know whether there are limitations on the length of said string.
Oh, it’s just a name! I thought if you pass “Sphere”, then a sphere will be created. I understood now that the shape is determined by another parameter:
self.node = BulletRigidBodyNode("Box")
self.shape = BulletBoxShape(Vec3(0.5, 0.5, 0.5))
self.node.addShape(self.shape)