Git Product home page Git Product logo

Comments (5)

jrouwe avatar jrouwe commented on July 28, 2024 1

Yes, that's what I meant. But I can see your use case. Let me know if this becomes urgent.

from joltphysics.

jrouwe avatar jrouwe commented on July 28, 2024

const version for GetBodyInterface has been added.

W.r.t. the Fixed constraint: I did not expose an attachment frame on purpose there as the bodies are always fixed relative to each other, so you should be setting their positions anyway to make them match (if you place the bodies in a very different position than how they're supposed to be attached then it can take pretty long before the constraint is fully stabilized - sometimes it will never fully reach the 'fixed' position). It wouldn't be really hard to support supplying a reference frame, but I'm curious why it isn't possible to place the bodies in the right position?

from joltphysics.

jankrassnigg avatar jankrassnigg commented on July 28, 2024

Oh you mean just call SetPosition on them and then create the constraint? I guess that's a possibility, too, though I would expect that that can create other problems, like having the objects penetrate things that they shouldn't be able to. That's what the constraint would "fix" for you, by pushing things out of the way a bit more gently (I guess).

This isn't a super important request and I don't have a concrete use case at hand, mainly pointing out that it could be useful to someone and that it would be a bit more consistent to have this in the interface.

from joltphysics.

jrouwe avatar jrouwe commented on July 28, 2024

Implemented in #166.

from joltphysics.

jrouwe avatar jrouwe commented on July 28, 2024

Be aware that this breaks the interface of FixedConstraint! You need to call SetPoint(body1, body2) now.

from joltphysics.

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.