Giter Club home page Giter Club logo

Comments (4)

Vrixyz avatar Vrixyz commented on August 17, 2024 1

Thanks for sharing your investigation, that helps! Right now I'm not sure either about how to expose it 😅, I might have ideas when I'll have encountered this codebase more.

I added the tag https://github.com/dimforge/rapier/releases/tag/v0.20.0.

from rapier.

Vrixyz avatar Vrixyz commented on August 17, 2024

Thanks for the suggestion ! In order to validate a path to implementation, I'd like to discuss current behaviour:

Currently, the testbed demo 2d in javascript provides a rotation gizmo, but I'm not sure where this is originating from, as it's the only example having such debug info 🤔 .

collision groups example

Screenshot 2024-06-18 at 10 47 43

from rapier.

rsk700 avatar rsk700 commented on August 17, 2024

Your are right, there is already rotation gizmo implemented in debug renderer
https://docs.rs/rapier2d/latest/rapier2d/pipeline/struct.DebugRenderMode.html#associatedconstant.RIGID_BODY_AXES

But it looks like api to set flag is not exposes in TestbedApp, flag hard coded here in resource to bevy app:
https://github.com/dimforge/rapier/blob/master/src_testbed/debug_render.rs#L25

and there is no way to change it because resource is private for testbed crate, so question now how to expose those flags to user?

btw I don't see v0.20.0 tag, it looks like it is not tagged in repository, v0.19.0 is the last tag

from rapier.

Vrixyz avatar Vrixyz commented on August 17, 2024

Your suggested patch is fine to me ! It's useful and discreet enough 👍 .

As you volunteered to submit a pull request I'm encouraging you to do so, otherwise I'll adopt it 😄

I'd welcome a comment like "// Draw a line to visualize rotation", because as you noticed this render would have a slightly different behaviour than the others.

from rapier.

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.