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

Vehicle physics behave strangely (regression) #9254

Closed
ghost opened this issue Jun 18, 2017 · 5 comments
Closed

Vehicle physics behave strangely (regression) #9254

ghost opened this issue Jun 18, 2017 · 5 comments

Comments

@ghost
Copy link

ghost commented Jun 18, 2017

I know that the physic engine is changing; so it should expected that some features will behave differently, so this may not be actually a bug.

from the https://github.com/godotengine/godot-demo-projects/tree/2.1/3d/truck_town demo I've stripped the basic car, then exported the GD2 project to GD3 (I had just to rename the godot.project file); and made a video on how differently the car behave in the two engine.

https://matrix.org/_matrix/media/v1/download/matrix.org/eMBwSLTXeDijwgVENfuLZjfH

file project are here: https://matrix.org/_matrix/media/v1/download/matrix.org/CsfnnmOhTPOBZXHanolAeHPV

@Zireael07
Copy link
Contributor

Aha, so it's not just me! I was going to report this but I thought I did something wrong when exporting.

@alexwbc: you might want to edit the title to say "Vehicle physics behave strangely" so that it's obvious it refers to the car physics and not some other part of the physics engine.

@bojidar-bg bojidar-bg added this to the 3.0 milestone Jun 19, 2017
@bojidar-bg bojidar-bg changed the title Physics behave strangely Vehicle physics behave strangely (regression) Jun 19, 2017
@Zireael07
Copy link
Contributor

Bump.

From my poking around when I made a PR, the vehicle code looks roughly the same in 2.1 and 3.0 excepting the function renames. Maybe the January Maths revisions (changing the order of rotations etc.) are at fault there?

@Zireael07
Copy link
Contributor

I made a quick repro in 3.0 alpha. Car's settings and the body of the script used to control came from the 2.1. truck town demo. Just drive around on the plane to see it bounce around. If you come to a stop, it doesn't, instead continues to jitter diagonally to the position it was in when you tried to stop.

car repro.zip

@Zireael07
Copy link
Contributor

I am beginning to suspect that the ultimate cause of this bug is the joint code.

Enabling Bullet (#10013) fixes the issue and Andrea did not touch the actual car code. Furthermore there is an open issue about joints being broken.

@Zireael07
Copy link
Contributor

Fixed by #12641 !!!

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

3 participants