Skip to content

Conversation

@enbugger
Copy link

Mainly following https://docs.godotengine.org/en/stable/tutorials/migrating/upgrading_to_godot_4.html

Currently, the main stopper is space.cast_motion(params) seem to be working differently than it was in Godot 3. It returns [1,1] when road wheels collide with the floor. This makes M113 to fall through the floor. So I keep this PR in draft until I come up with fix for that.

GDCustomRaycastVehicle.DEBUG.2024-05-16.14-22-24.mp4

@enbugger
Copy link
Author

enbugger commented May 18, 2024

I couldn't make cast_motion normally work with the code from Godot 3 so I replaced DriveElement logic with ShapeCast3D as it now does some parts inplace of manually coded logic.

But overall the tracks tend to fall through in the new physics engine of Godot 4. For example, on jumps. Maybe adjusting DriveElement physics parameters might help.

Also fixed broken meshes normals after migration for m113

GDCustomRaycastVehicle.DEBUG.2024-05-18.02-40-21.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant