G-Zero icon indicating copy to clipboard operation
G-Zero copied to clipboard

Movement

Open Bitblaxe opened this issue 5 years ago • 7 comments

I can only really turn left and right, but can't move forward or back. I know you haven't really looked at this but I would appreciate some help.

Bitblaxe avatar Jul 12 '20 21:07 Bitblaxe

I have exactly the same problem and do not know why it is here...

cloud-worm avatar Nov 07 '20 19:11 cloud-worm

I apologize to the non-response @Bitblaxe and @cloud-worm. Life has been hectic, however there has been some improvements going on in the Godot Engine:

There is progress of the implementation of Barycentric Coordinates through this pull request: https://github.com/godotengine/godot/pull/71233

It was how objects was able to rotate based on raycast collision on the tri-mesh normals of objects. Once it gets implemented I'll be able to find a way to improve the demo project.

Truth be told I'm going to be scrapping and redo-ing the project from the ground up using Godot 4.0 and above once this the pull-request is merged and live on future Godot Updates.

Which will also include improved controls.

Corruptinator avatar Jun 06 '23 06:06 Corruptinator

Is there a projected date for this new demo project? I'm trying something similar in 4.0 but I can't manage to get the car to 'stick' to the track like in f zero.

DriftWare07 avatar Sep 26 '23 16:09 DriftWare07

@DriftWare07, there has been some new development with 4.2 recently. Mostly with the implementation of Barycentric Coordinates:

https://github.com/godotengine/godot/pull/71233

which is also inspired by this video: https://youtu.be/UhJUn3vyPx8?si=8q6fN15TTR2OPtRa

Im still trying to figure out a way to get barycentric coordinates to work since its in the pre-release dev 4.2

was thinking of redoing the project from scratch that will make use of Barycentric Coordinates.

Corruptinator avatar Oct 02 '23 21:10 Corruptinator

Restarting from scratch isn't what anybody wants to hear but its probably for the best

Corruptinator avatar Oct 02 '23 21:10 Corruptinator

In the end @DriftWare07, it’s not so much we want to make the car stick to the ground or wall but re-angle the vehicle based on the poly-face(tri-mesh) normals, so then the z-axis basis (up or down) falls toward that direction

hence the Barycentric coordinates

Corruptinator avatar Oct 02 '23 22:10 Corruptinator

I've also tried to do this with collision normals but i can't get it to work right

DriftWare07 avatar Oct 02 '23 22:10 DriftWare07