Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Zero-g
#8
(16-11-2018, 12:42 PM)innovine Wrote: Isn't 0.1 - 10 a ratio of 100 though, not 10 as you keep saying? Where did you get 10 from? 
How is one supposed to implement any realistic looking physics if the masses are all wrong? Say I have a 1000kg car and it crashes into a table of small objects of 1kg. What is recommended, make apples 100kg, or make my car 10kg?

This is a widely known limitation of realtime physics in general.

Yes, 0.1 - 10 is a ratio of 100, however things begin to break sooner if you have multiple bodies (and not just 2).

Excerpt from the official PhysX (UNity's physics engine) docs:
https://docs.nvidia.com/gameworks/conten...oints.html

Quote:The solver can have difficulty converging well when a light object is constrained between two heavy objects. Mass ratios of higher than 10 are best avoided in such scenarios.

Quote:How is one supposed to implement any realistic looking physics if the masses are all wrong? Say I have a 1000kg car and it crashes into a table of small objects of 1kg. What is recommended, make apples 100kg, or make my car 10kg?

Short answer: you don't. Just set their masses closer together and/or decrease the fixed timestep to increase solver accuracy (this allows you to use larger mass ratios). Depending on what you're after that means making the car lighter or the apple heavier. Some engines give you the option of scaling the masses upon contact, so that the mass ratio is kept in a sane range. The resulting behavior is obviously non-physical, but at least it does not explode -as often-. Either way, it is not generally possible to simulate very heavy and very light objects together in realtime.

Solutions to this: use a direct solver (which are much more expensive than iterative ones both financially and performance-wise, so realtime applications avoid them), or use all kind of hacks like the above mentioned.

Fun experiment you can do in Unity: place a 100 kg box on top of a 1 kg box, then watch them dance Guiño. The heavier the top box, the wilder the result.
Reply


Messages In This Thread
Zero-g - by innovine - 13-11-2018, 10:28 PM
RE: Zero-g - by josemendez - 14-11-2018, 01:41 PM
RE: Zero-g - by innovine - 16-11-2018, 11:00 AM
RE: Zero-g - by josemendez - 16-11-2018, 12:13 PM
RE: Zero-g - by innovine - 16-11-2018, 12:25 PM
RE: Zero-g - by josemendez - 16-11-2018, 12:32 PM
RE: Zero-g - by innovine - 16-11-2018, 12:42 PM
RE: Zero-g - by josemendez - 16-11-2018, 01:13 PM
RE: Zero-g - by innovine - 16-11-2018, 03:24 PM
RE: Zero-g - by innovine - 19-11-2018, 03:48 PM
RE: Zero-g - by josemendez - 20-11-2018, 08:23 AM
RE: Zero-g - by innovine - 20-11-2018, 03:18 PM
RE: Zero-g - by josemendez - 20-11-2018, 04:07 PM