Excellent transmission, it was differential, you've shifted your videos up a gear and even though you were tyred, I wheelly think you torqued yourself into overdrive. You power trained us. I'll get my coat and see myself out. ;) Happy new year!
@BastiaanOlij
3 жыл бұрын
ROFL :)
@NOPerative
3 жыл бұрын
Stuff is starting to come together - looks good! Nice vid.
@BastiaanOlij
3 жыл бұрын
Thanks! Glad you enjoyed it!
@sslaxx
3 жыл бұрын
Thanks for sharing what you do.
@deineMudda952
Жыл бұрын
great one, was easy to implement into my own car controller script, thanks! For Godot 4 (beta 13): instead of using: "power_curve.interpolate_baked(rpm_factor)" use: "power_curve.sample_baked(rpm_factor)" also to properly export the curve var use: "@export var power_curve: Curve = null"
@BastiaanOlij
Жыл бұрын
Yup, lots of things are renamed or have slightly different syntax. When Godot 4 is officially released I plan to do a stream where I convert this project to Godot 4.
@bruceparker6142
Жыл бұрын
I'm looking forward to this. I recently started godot and gamedev and I'm building a racing game. I'm using godot 4.
@Octavio_Jorge
3 жыл бұрын
Well explained, you're the best
@BastiaanOlij
3 жыл бұрын
I appreciate that!
@Lucas-gg9yb
3 жыл бұрын
why you didn't keep this series going? i want more!
@BastiaanOlij
3 жыл бұрын
I'm planning to revisit it as soon as I can, right now I've got a bit more on my plate then I'm comfortable with :)
@bruceparker6142
Жыл бұрын
var power_factor = power_curve.interpolate_baked(rpm_factor) Does not work in godot 4 I tried .sample_baked(rpm_factor) and still no luck. Do you know what is the godot 4 equivalent?
@BastiaanOlij
Жыл бұрын
Hi Bruce, thanks for dropping into my adhoc stream today. As we found out it is indeed sample_baked but there were many more changes needed before things started to work. Keep an eye on: github.com/BastiaanOlij/vehicle-demo/pull/15
@bruceparker6142
Жыл бұрын
@Bastiaan Olij Thanks for replying and porting to godot 4. Due to my timezone, I was just starting my workday for most of the stream. I will go back and view.
@Lucas-gg9yb
3 ай бұрын
I tried it in a 2d game i'm making, but when the car get to the 4th gear, it suddenly loses rpm, i tried lowering the wheel radius, while i could get past the 4th gear, on the 6th the car get 0 rpm, what am i doing wrong?
@BastiaanOlij
3 ай бұрын
I'm not sure why you're getting 0rpm because that means you're standing still, unless it's not getting the correct gear ratio. As for loosing RPM, keep in mind that every time you go to a higher gear, we lower the power output. Depending on what sort of powercurve you've settled on, it's likely that after your 4th gear you simply don't have enough power to accelerate the car. This is all a rough approximation of what happens in real life, and a bit of a balancing act between the weight you've set for your car, the drag the car gets, the power curve and max power you've set, and what gear ratios you're working with.
@Lucas-gg9yb
Жыл бұрын
ok, and how about an automatic gearbox? how to implement it?
@BastiaanOlij
11 ай бұрын
Automatic gearbox is fairly simple, you just add some logic that will shift up, or down based on the RPM. Something like: if rpm > 5000 and gear < 5: shift_up() elif rpm < 2000 and gear > 1: shift_down() You need to make sure that when you're in gear 1 and the rpm drops below 1000, you just show the rpm as if idling at 1000. And you need to do something that when the player hits the break while standing still, it puts the car in reverse. Little things like that. Also nice things is that on the shift up/down you trigger an animation that makes the shift less instantaneous.
@pencilguin
3 жыл бұрын
Hi Bastiaan - almost entirely off-topic question: I remember hearing that there is a conflict between godot engine (possibly the C# integration) and Xamarin. Do you know if that's still the case, and whether you can use both technologies (for different things) at the same time? Thanks!
@BastiaanOlij
3 жыл бұрын
Hey Stan, unfortunately I do not do a lot with C# at the moment so I'm not up to date with the state of things. This would be a good question to ask on the official Godot IRC or Discord channels. There is a dedicated C# channel on Discord where they undoubtedly have the answer.
@dodderss
3 жыл бұрын
Here’s a link to the official godot discord server discord.gg/ASrDJjJQ2N
@joeyinfn
2 жыл бұрын
Have you looked into steering wheel support for Godot?
@BastiaanOlij
2 жыл бұрын
If i recall correctly I spend a whole stream working on making my logitech steering wheel with padels and shifter work. Was pretty straight forward
@joeyinfn
2 жыл бұрын
@@BastiaanOlij dev stream 22 if anyone is interested. The Logitech Steering Wheel SDK is in C++. I am currently looking into turning it into a Godot module for access to the full features including force feedback.
@BastiaanOlij
2 жыл бұрын
@@joeyinfn owh nice! I definately missed being able to access force feedback
@dodderss
3 жыл бұрын
Please do a tutorial on how to implement car sounds. Thanks!!
@BastiaanOlij
3 жыл бұрын
Thats on my list of things I want to tackle but finding good sound assets to use that do not fall under a restricted license has proven hard.
@Metriximor
Ай бұрын
@@BastiaanOlij use angie's engine simulator to do it
@mayankkoli2300
3 жыл бұрын
PLZ add AI car that move around the track
@BastiaanOlij
3 жыл бұрын
It's on my list but AI is a big subject
@new_nodegames805
3 жыл бұрын
check KidsCanCode "Godot Recipe: AI - Context-based Steering" video and read the comments to find the project link
@owenlloyd3567
3 жыл бұрын
Onya mate, respects and appreciation
@BastiaanOlij
3 жыл бұрын
Thanks mate! Glad you enjoyed it
@sripranav
2 жыл бұрын
Love this! But about drifting, is it just tweaking some properties or we have to simulate it.
@BastiaanOlij
2 жыл бұрын
From what I know you have to simulate it, the vehicle simulation is pretty basic. you can set things up so the back wheels skid but it is really hard to control.
@dodderss
3 жыл бұрын
Also, do you know why my steering wheel does not turn?
@BastiaanOlij
3 жыл бұрын
The projects inputs are currently mapped to a gamepad only, if you're using a steering wheel like a G29 you need to change the input parameters. I'm working on making this a feature (see my live steam from couple weeks ago)
@dodderss
3 жыл бұрын
Nonono I mean the steering wheel in the car in Godot not an external one
@BastiaanOlij
3 жыл бұрын
Owh! did you get the latest version from Github? I remember having to fix it but I can't remember what it was. Couple things changed between 3.0 and 3.2
@dodderss
3 жыл бұрын
@@BastiaanOlij Yeah i got that one but it stil has the problem
@BastiaanOlij
3 жыл бұрын
Weird, I'll have to look into it some more but the code that rotates the steeringwheel in the car is in scenes/cars/car.gd line 156 It does look like a few assets got mangled with some of the moving around of assets so I might have simply broken something when you freshly check out of Github..
@NetFelixOfficiel
3 жыл бұрын
It would be awesome if you could make a multiplayer tutorial series
@BastiaanOlij
3 жыл бұрын
Maybe someday I will but good multiplayer is not an easy subject and would take months to put together and my focus to this day remains on XR. There are a few tutorials out there that already handle the basics of multiplayer that are pretty good. Check out GDQuest, Snopek Games and Game Development Center Channels
Пікірлер: 46