- Home /
Is unity magnitude in km/h or m/s?
The tittle says it all. If you debug.log(rigidbody.velocity.magnitude), do you get this is km/h or m/s if 1 unity unit is 1 meter.
Answer by tanoshimi · Aug 09, 2014 at 07:39 AM
It's units/sec. So, if you're treating 1 unit = 1 metre then it's m/s.
Everything in unity is built around SI units. So if you use the default settings you will be working with m/s
The only default setting I'm aware of that suggests that 1 unit = 1 metre is the physics gravity setting of -9.81 (which can, of course, be changed anyway) - if you want to scale your objects so that 1 unit = 1 foot, or 1 unit = 1 mile, that's just fine.
Your answer
Follow this Question
Related Questions
Measure speed in single axis 1 Answer
Increasing the speed of a ball in a brick breaker game 0 Answers
Apply same amount of force even after gameObjects are fixed joint 0 Answers
Bullet not moving from script 3 Answers
How to determine the axis specific speed (or velocity) of a kinematic object? 0 Answers