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 support for per-shape physics materials #100748

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tancop
Copy link

@tancop tancop commented Dec 22, 2024

Closes godotengine/godot-proposals#7401.

This PR adds:

  • Methods shape_set_friction, shape_get_friction, shape_set_bounce, shape_get_bounce to PhysicsServer3D
  • Property physics_material to Shape3D

This is only implemented for the Jolt Physics backend using a custom Jolt physics material like one of the official samples.

Example project that uses two different materials on one body: per-shape-materials.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add per-shape physics materials to the 3D physics system
2 participants