Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debug rendering axes and joints and improve configuration API #76

Merged
merged 4 commits into from
Jul 16, 2023

Conversation

Jondolf
Copy link
Owner

@Jondolf Jondolf commented Jul 16, 2023

Adds several methods for PhysicsDebugConfig and DebugRender to make the API much nicer, and adds support for debug rendering entity axes and joints.

An example of a global config that renders colliders and hides the visual meshes, but disables all debug rendering for a specific entity:

app.insert_resource(
    PhysicsDebugConfig::colliders(Color::ORANGE).with_mesh_visibility(false)
);

// In some setup system
commands.spawn((
    RigidBody::Dynamic,
    Collider::ball(0.5),
    DebugRender::none(),
));

Closes #75 (although it was already possible, just with a more cumbersome API)

@Jondolf Jondolf added the C-Enhancement New feature or request label Jul 16, 2023
@Jondolf Jondolf merged commit 7ed5271 into main Jul 16, 2023
3 checks passed
@Jondolf Jondolf deleted the more-debug-rendering branch July 16, 2023 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Way to disable debug render for TriMesh colliders
1 participant