bullet3
bullet3 copied to clipboard
HelloWorld example is giving no output
I'm interested in the bullet library so to start playing around with it I've made a copy of the HelloWorld.cpp on my system. I'm using Ubuntu 22.04 with the following bullet installation: Package: libbullet-dev Version: 3.06+dfsg-4build2
When I run the build application there is no output. After diving into the code a bit, the for loop where the setSimulation()
method is called, dynamicsWorld->getNumCollisionObjects()
return 0.
When looking at the ground object created in the run-in, I would expect that it would have a collisionShape. But when calling:
body->getCollisionShape()
this returns nullptr
The same thing happens for the sphere that is created a little further on.