x


How far do the axis go?

What is the maximum possible x position an object can have?

Is this also the maximum for all the other axis?

more ▼

asked Jul 10 '12 at 09:57 AM

David1901 gravatar image

David1901
45 5 12 22

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

As far as i know the position of objects are stored as floats. Meaning that technically the maximum value for any of the axis is about ±1.5 * 10^45 to ±3.4 * 10^38 (http://msdn.microsoft.com/en-us/library/b1e65aza%28v=vs.71%29)

However because of the inaccuracy of floating points it is inadvisable to go above 5-6 digits numbers when dealing with 3D positions.

The Unity grid is 100.000 units, that is probably a good value to stay under. If you find yourself hitting this value you should rethink your implementation, and scale things down.

So short answer. Stay within -50.000 and 50.000 on all axis and you will be fine.

more ▼

answered Jul 10 '12 at 12:40 PM

Mattivc gravatar image

Mattivc
1.7k 55 60 67

Agreed - just one thing - scaling can be an issue when dealing with physics so be very careful, in general PhysX can seem to behave strangely when dealing with unrealistic sizes.

Jul 10 '12 at 01:26 PM whydoidoit

This is also correct. If you want the physics to be as realistic as possible then: 1 Unity unit = 1 Meter

Jul 10 '12 at 01:36 PM Mattivc

If you scale the world, make sure you scale the gravity and masses the same way and you shall be fine.

A 4 unit high male should move double as fast as usual to the ground when falling from a double sized tower to make it look as if nothing was scaled.

Jul 10 '12 at 01:45 PM captaincrunch80

Don't forget there are more physical parameters like "Drag",

"Sleep Velocity", "Min Penetration For Penalty", ...

It's better to stick with 1u == 1m

Jul 10 '12 at 02:50 PM Bunny83
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1283
x888
x323

asked: Jul 10 '12 at 09:57 AM

Seen: 249 times

Last Updated: Jul 10 '12 at 02:50 PM