[ODE] mass ratio idea

Andrzej Szombierski qq at kuku.eu.org
Mon Sep 27 18:09:32 MST 2004


On Mon, 27 Sep 2004, Tyler Streeter wrote:

> Here's an idea for dealing with the problem of having
> two objects collide with a huge mass ratio:
> 
> Whenever two objects (both with bodies) collide,
> calculate the ratio of the larger mass to the smaller
> mass.  If the ratio is above some threshold (e.g. the
> large mass is a train car and the small mass is a
> baseball), ignore one side of the collision.  In other
> words, temporarily treat the train car as a static
> object (with no body).
> 
> Any thoughts?

Seems nice, but I think there may be a problem if both bodies are moving. 
If one of them is treated as static, the relative velocity at the contact 
point will be calculated incorrectly, possibly resulting with non-physical 
behavior.

(but that's my guess - haven't tried it)

-- 
:: Andrzej Szombierski :: qq at kuku.eu.org :: http://kuku.eu.org ::
:: anszom at bezkitu.com  :: radio bez kitu :: http://bezkitu.com ::



More information about the ODE mailing list