0 votes

En:
Hello. I'm not very professional at Godot. So I managed to get the speed of my car in my game, but I don't know how to find the rpm of my car.
I used "VehicleBody" for my vehicle and "VehicleWheel" for the wheels. I will be glad if you help me. Thanks in advance.

Tr:
Merhabalar. Godot'ta çok profesyonel değilim. O yüzden oyunumda arabamın hızını almayı başardım fakat aracımın rpm sini nasıl bulacağımı bilmiyorum.
Aracım için "VehicleBody" kullandım ve tekerlekler için de "VehicleWheel". Yardım ederseniz sevinirim. Şimdiden teşekkürler.

Godot version v3.4.4.stable.official [419e713a2]
in Engine by (89 points)
retagged by

Presumably you mean the rpm of the wheels? If so, calc the distance travelled over time, and divide it by the circumference of the wheels.

I mean distance traveled in time. Do you mean the speed of the car? If so, I found my tool's speed by doing linear_velocity.lenght().

I did as you said but to no avail.

Actually, I want to learn the revolution of the car like in real life. Is this possible?

Revolutions or rpm mean the number of turns, so I don't know what you mean by "the revolution of the car". And "distance traveled in time" is the speed? I'm confused by what you want exactly.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.