Hello. I'm on Godot version 4.7.
I want to make a 2d topdown car, but I can’t increase it’s velocity on the right direction. What I mean is, I can’t get the car to move where it’s facing. I tried to use the “move_local_y” but that changes the position while I need it to change the velocity.
ah, try to use velocity.x = transform.basis.x * (speed variable) AND velocity.y = transform.basis.y * (speed variable), if this for some reason doesn’t work google transorm basis and it should explain it better, but basically, transform basis applies directional force locally instead of globally, so the car should move in the direction its facing in, just make sure you’re using characterBody3D as well
For 2D that’s a tricky one
I had to google myself
I found a link to a site i’ve used before for 3D stuff, but i haven’t checked out many of their 2D tutorials yet. Maybe it can help you though? I don’t know much about this kind of movement in 2D
(sorry for not being able to answer well, would have left it uncommented since its not something I know a lot about but not many ppl have responded yet so IDK)
link to what i found
hello. i tried to do it but couldn’t with my characterbody2d. you said something about characterbody3D but i don’t know how to do it with 3D so can you please explain a little more? i’m very new to this.
hey! thanks for the website. it’s really helpful and i appreciate it but since i’m new to godot i kinda want to use this as a learning opportunity and i can’t understand any of the code from the website. i really appreciate it though i will use the site for later projects. it was really helpful <3