#Calculate and display speed (kph)

1 messages · Page 1 of 1 (latest)

wraith marsh
#

Here is a basic script to calculate and display kilometer per hour speed, based on the velocity of RigidBody physics

native echo
#

Nice!

#

🤓 You could also just multiply by 3.6 😉

dapper turtle
# native echo 🤓 You could also just multiply by 3.6 😉

Looking from a brevity perspective, yes multiplied by 3.6 (60*60/1000) is better. But if I look at Josh Garrett's code in 5 months, I will immediately understand what the code does, but if it is just 3.6 - I will have to spend a few extra milliseconds or seconds/minutes to understand what it means 🙂

wraith marsh
native echo
#

magnitude x 3.6

native echo