[ODE] mass ratio idea

Jon Watte hplus-ode at mindcontrol.org
Mon Sep 27 11:53:27 MST 2004


You can implement this in your nearcallback just fine. 
It works reasonably well, although you need to make sure 
that if the heavy object has high velocity, you add extra 
force to the baseball ball so it exits the collision with 
at least a velocity equal to the velocity of the train in 
the direction of the collision normal.

Cheers,

			/ h+


-----Original Message-----
From: ode-bounces at q12.org [mailto:ode-bounces at q12.org]On Behalf Of Tyler
Streeter
Sent: Monday, September 27, 2004 8:47 AM
To: ode at q12.org
Subject: [ODE] mass ratio idea


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?

Tyler


	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 
_______________________________________________
ODE mailing list
ODE at q12.org
http://q12.org/mailman/listinfo/ode




More information about the ODE mailing list