|
What is the maximum possible x position an object can have? Is this also the maximum for all the other axis?
(comments are locked)
|
|
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. 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)
|
