Open manas96 opened 2 years ago
On further thought, I should be using pb.getNumConstraints()
in the loading script (since I am creating a user-defined constraint). However, this too returns 0 when it should be returning 1.
It seems that during loadBullet()
the function btWorldImporter::convertConstraintDouble()
is called, which creates a rigidbody p2p constraint (btPoint2PointConstraint
). It should be creating a multibody p2p constraint (btMultiBodyPoint2Point
) instead, right? I'd be happy to work out a fix with PR if my assessment is correct :)
Hi, I'm trying to load a bullet scene that consists of two rods connected by a single joint like so:
However, no joints are detected for any body in the loaded scene, as this output shows:
The actual scene loads just fine, and it has a joint in the correct place. However, I need access to the joint info programmatically. I dug around the C++ code and it seems that the
BodyJointInfoCache** bodyJointsPtr
inPhysicsClientSharedMemory::getNumJoints()
is evaluating to null.Is this a bug or am I doing something wrong?
Also note that I need to use
useMaximalCoordinates=True
otherwisepb.loadBullet()
does not return object IDs.