How do I set the unit of length in 3D for Unity to cm?

Asked 1 years ago, Updated 1 years ago, 103 views

The default for Unity appears to be meters.This is too big for my current project, so is there a way to make it cm?(Weight is Question separately)

One in the reference below is


To change the gravity of the entire game In Edit→Project Settings→Physics, change the Y value of Gravity in PhysicsManager in Inspector from -9.81.

I feel a little uncomfortable with the movement, but I'll wait and see with this!

There is an example like this where I try to do something with gravity, but I would like to make it with something suitable for the one that is purely creating the unit.

My impression of the default unit is the same as the following article.

[Development diary] A story about the fact that the object size on Unity is very large|Sesame-chan Frontier

1m (meter) on Unity corresponds to one side of the default Cube.Since the size of the Cube is all generated by 1 for XYZ, 0.5 is 50cm and 10m is 10m.
Based on that, if you think about the realistic size of my character that I am currently using, the motifs are animal-like such as rabbit and squirrel, so even if you walk on two legs, about 30cm would be a reasonable line.

Hmm... It's the size of the existing dimensions.
Certainly, when I was dealing with Unity standard objects (especially Terrain), I felt that my object was large, but when I think about it in real measure, I have the impression that it is bigger than I thought.It is roughly as tall as a "two-story detached house" in the real world.That's because physical arithmetic is much better.

(I think "mossari" here probably means that you're looking at a big object from a distance and it looks like you're losing weight.)

Summarize the units of sprites in Unity - Shibuya Hotogisu

Unity is in meters

Object malfunction due to not understanding Unity's unit system|patio

Apparently, I was making a coin dropping game using 2 kilograms of coins at 0.7 meters.

unity3d

2022-09-30 20:17

1 Answers

The constant of gravity near the surface of the earth, 9.81 m/s^2, also has a unit.As you can see, meters are part of the unit, so when calculating, all the lengths must be meters.If you want to calculate in centimeters, you have to convert the units of the constant of gravity.

9.81 m/s^2 == 981 cm/s^2

So you can either convert the length to all meters or change the constant of gravity as shown in the reference.


2022-09-30 20:17

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.