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

Rough physics material not behaving correctly on GridMaps #90490

Closed
Hyphinett opened this issue Apr 10, 2024 · 0 comments · Fixed by #90503
Closed

Rough physics material not behaving correctly on GridMaps #90490

Hyphinett opened this issue Apr 10, 2024 · 0 comments · Fixed by #90503

Comments

@Hyphinett
Copy link

Hyphinett commented Apr 10, 2024

Tested versions

  • Discovered in 4.2.1 Stable
  • Reproduced in 4.3 dev 5
  • Reproduced in 4.1 Stable

System information

Godot v4.2.1.stable.mono - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2070 (NVIDIA; 31.0.15.4617) - AMD Ryzen 9 7900X 12-Core Processor (24 Threads)

Issue description

When a PhysicsMaterial with the rough variable set to true is applied to a gridmap, friction on the gridmap doesn't appear to be affected.

Steps to reproduce

image

  1. Create a basic gridmap of cubes and place a mesh filter cube with a StaticBody collision cube, make sure they both have large top surfaces to be able to test friction on.
  2. Apply the same physics material to both ensuring Rough is set to on.
  3. Create 2 Rigidbody3D spheres with no physics material applied. I attatched cube mesh instancers in the MRP to better illustrate the rotation of the bodies
  4. Position them and add an initial linear velocity to launch one onto the top surface of the gridmap and the other onto the StaticBody cube.
  5. Give initial angular velocity to the 2 spheres in the opposite direction to how they should roll when they hit the surface.

Expected result:
Both spheres land on their respective surfaces and their angular momentum is absorbed by the impact before the linear velocity carrys them forward at the same speed.

Actual results:
The sphere that lands on the StaticBody collider will behave as expected but the angular momentum on the sphere launched at the gridmap surface will carry through the collision and it will move along the surface faster than the other one.

Minimal reproduction project (MRP)

FrictionTestingScene.zip

@akien-mga akien-mga changed the title Rough physics material not behaving correctly on Grdimaps Rough physics material not behaving correctly on GridMaps Apr 10, 2024
@akien-mga akien-mga modified the milestones: 4.3, 4.x Apr 10, 2024
@akien-mga akien-mga modified the milestones: 4.x, 4.3 Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants