GithubHelp home page GithubHelp logo

Comments (6)

stephengold avatar stephengold commented on August 26, 2024

Thanks for the inquiry. I'll investigate.

from libbulletjme.

stephengold avatar stephengold commented on August 26, 2024

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.

from libbulletjme.

stephengold avatar stephengold commented on August 26, 2024

So, to answer your questions:

  1. Yes, it's possible to create ragdolls using Libbulletjme.
  2. Libbulletjme won't support btRigidBodyConstructionInfo, because it would be redundant.
  3. Libbulletjme sets the local inertia of rigid bodies for you. It doesn't provide access to calculateLocalIntertia(), but could in the future if there were a need for it.

Please let me know: is this issue resolved to your satisfaction?

from libbulletjme.

waveware4ai avatar waveware4ai commented on August 26, 2024

I think need to provide func calculateLocalIntertia() ... :-)
Thanks you very much ~
have a nice day !

from libbulletjme.

stephengold avatar stephengold commented on August 26, 2024

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()?

from libbulletjme.

waveware4ai avatar waveware4ai commented on August 26, 2024

Libbulletjme does this automatically when you create a rigid body.
<-- Thank you, your advice ...

from libbulletjme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.