Calculate distance in metres or sm

How can I transform result in float value from sqrt(vector0-vector1) to get distance in metres or sm?

Thanks.

Unreal units are Centimeters.

So every 100 units is a Meter

Strange. I have distance 19293999 sm, but the object almost ahead of me.

Can I see your code?

Sure. Code is very simple:

float distance = (PointOne-PointTwo).Size();

Yeah that should give you the distance between the two points in Centimeters.

Ok. I think that answer I was looking for. Thanks.

Distance / 100 = metrs

1 centimeter - 1 unreal unit
1 meter - 100 unreal units (Distance / 100 = metrs)
1 kilometer - 100,000 unreal units
1 inch - 2.54 unreal units
1 yard - 91.44 unreal units
1 mile - 160,934 unreal units

1 Like