Closed waveware4ai closed 4 years ago
Thanks for the inquiry. I'll investigate.
A 7-year-old fork of Bullet might not be the best place to find examples. The current/authoritative Bullet repo is the one at https://github.com/bulletphysics/bullet3
Many Bullet examples use the btRigidBodyConstructionInfo
struct to construct rigid bodies. However, it's not necessary. In Libbulletjme, you construct a rigid body using the PhysicsRigidBody
constructor, specifying its shape and mass. The constructor sets the local inertia vector for you. All other parameters of the rigid body can be set after construction, using the setters of PhysicsRigidBody
.
So, to answer your questions:
btRigidBodyConstructionInfo
, because it would be redundant.calculateLocalIntertia()
, but could in the future if there were a need for it.Please let me know: is this issue resolved to your satisfaction?
I think need to provide func calculateLocalIntertia() ... :-) Thanks you very much ~ have a nice day !
Ragdoll.cpp
uses calculateLocalInertia()
only to create a rigid body. As I pointed out, Libbulletjme does this automatically when you create a rigid body.
Is there some other use case for calculateLocalIntertia()
?
Libbulletjme does this automatically when you create a rigid body. <-- Thank you, your advice ...
Hello stephengold. :-)
I am trying to implement a legdoll using excellent 'Libbulletjme' project, (ex, https://github.com/kripken/bullet/blob/master/Demos/GenericJointDemo/Ragdoll.cpp) It does not appear to have the following features. (like a btRigidBodyConstructionInfo, shape->calculateLocalInertia function etc ...) I am wondering if it is possible to apply in the current situation, or if you can support this function in the future.
have a nice day, stephengold ~