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

staticbody2d constant linear velocity not affecting colliding bodies #352

Open
alexspoon opened this issue Mar 4, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@alexspoon
Copy link

Describe the bug

i'm trying to make a conveyor belt but the constant linear velocity property of the staticbody2d is not being applied to colliding rigidbody2ds. i set the constant velocity in a script according to a direction and speed, and i print the constant linear velocity value in the console to show that the value is set, just not working as expected.

To Reproduce

Steps to reproduce the behavior:

  1. run game
  2. watch box fall on conveyor belt and not move
  3. try to drop other boxes on conveyor and they do not move either
  4. read console and see that the constant linear velocity value is set

Expected behavior

i expected the box to slowly be pushed along the conveyor belt, like how the property is described to work.

Environment:

  • OS: Windows 11 Home
  • Version: installed 0.8.11, but console output shows 0.8.10
  • Godot Version: 4.4 stable
  • Type: godot-rapier-2d-single-simd-parallel

Example project(zip)

const linear velocity bug repro.zip

@alexspoon alexspoon added the bug Something isn't working label Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant