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

GodotPhysics locks up on Rigidbody3D collision #66220

Closed
akien-mga opened this issue Sep 21, 2022 · 4 comments
Closed

GodotPhysics locks up on Rigidbody3D collision #66220

akien-mga opened this issue Sep 21, 2022 · 4 comments

Comments

@akien-mga
Copy link
Member

akien-mga commented Sep 21, 2022

Godot version

Godot_v4.0-beta1, may be in 3.5 too

System information

 Windows 10 64-bit, Intel CPU, Vulkan, Nvidia GTX 1060, GodotPhysics     Windows 10 64-bit, Intel CPU, Vulkan, Nvidia GTX 1060 / Nvidia MX 150 (two devices), GodotPhysics

Issue description

Filing this issue on behalf of a user who does not have a GitHub account.
Copy pasting the content sent by email, I did not assess if this issue is valid or if it has duplicates myself.


When the attached scene is run, once the two RigidBody3D objects collide the GodotEngine (game) stops responding and must be stopped from the editor.

Important note: The issue only appears to happen when the collision mesh is created using the mesh 'Create Single Convex Collision Sibling'. If the collision mesh is created using the other types of generation the engine appears to run normally. So it is not entirely clear if it is an edge-case issue is with the physics engine or an issue with the collision mesh generation.

Steps to reproduce

Import the attached scene into a new project and run the scene (the screenshots included are just examples showing the engine lockup). The scene was created the following way...

  1. New project.
  2. New scene, add a root 3D node.
  3. Add a RigidBody3D node, add a child MeshInstance, set the mesh to the default new capsule mesh.
  4. Use the 'Create Single Convex Collision Sibling' feature in the editor to create the collision mesh.
  5. Set the gravity variable on the body to zero.
  6. Duplicate the rigid body.
  7. Place the two rigid bodies equal distance apart and set their linear velocity so they directly collide with each other.
  8. Run the scene.

Minimal reproduction project

rigidbody3d_collision_lockup.zip

@Zireael07
Copy link
Contributor

dupe/related to #48587 ?

@ChristianB84
Copy link

ChristianB84 commented Sep 28, 2022

I have a similar issue with meshes created via Mesh.CreateConvexShape. The engine was not quite frozen, but nearly. There was a new frame once every 30s or so. The meshes were not very complex.

@ChristianB84
Copy link

I just found out that it works without issues if I set the second parameter (simplify) to true.

@Calinou
Copy link
Member

Calinou commented Sep 29, 2022

Duplicate of #48587 (same cause). This applies to the problem reported by @ChristianB84 as well.

@Calinou Calinou closed this as not planned Won't fix, can't repro, duplicate, stale Sep 29, 2022
Repository owner moved this from To Assess to Done in 4.x Priority Issues Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

4 participants