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

Godot 4.0 Sphere RigidBody3D with linear_velocity on flat floor (built from many blocks) jumps #69655

Closed
BenjaminSchulte opened this issue Dec 6, 2022 · 1 comment

Comments

@BenjaminSchulte
Copy link

BenjaminSchulte commented Dec 6, 2022

Godot version

v4.0.beta.custom_build [deb760f]

System information

Ubuntu 20.04.3 LTS, Vulkan, TU116 [GeForce GTX 1660 Ti], nvidia 470.161.03

Issue description

A sphere RigidBody3D rolling over a sequence of boxes leads the ball to jump by random.

  • All boxes have a size of exact 1x1x1
  • All boxes are aligned on to build a seamless, flat floor without any gap
  • The ball has a bounce of 0.5
  • The ball is a simple RigidBody with an increasing linear_velocity
  • The ball starts to jump at some edges by random
RigidBodyBug.mp4

The green in the video line visualizes the Y coordinate.

The expected result would be a ball just rolling over the floor without jumping.

Steps to reproduce

  • Create CSGBoxes with collision and place them without a gap (Round positions to full numbers)
  • Add a RigidBody3D with a sphere collisionshape
  • Set the bounce value to 0.5
  • Add a script which increments the linear velocity over time
  • Place the RigidBody3D on the boxes to let it roll across the boxes

Example script:

extends RigidBody3D
func _physics_process(delta: float) -> void:
    linear_velocity.x -= 10 * delta

Minimal reproduction project

RigidBodyBug.zip

@Calinou
Copy link
Member

Calinou commented Dec 6, 2022

Duplicate of #50463.

@Calinou Calinou closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants