[ODE] How to set bounce_vel unique for every body in a contact?

Krystian Ligenza kxxl at poczta.onet.pl
Sat Aug 18 06:29:21 MST 2007


nearCallback function is the place where you will find information about 
collsion of those 2 sphere...and there you can do what ever you want with 
it, especially add force.


----- Original Message ----- 
From: "Dmitry Medvedev" <pegasi at inbox.ru>
To: <ode at ode.org>
Sent: Saturday, August 18, 2007 2:50 PM
Subject: [ODE] How to set bounce_vel unique for every body in a contact?


> Hello.
>
> I have 2 bumping spheres and want to magnify collision effect (bounce) 
> during impact, depending on spheres linear velocity vector. So I see 2 
> ways:
>
> 1) Add extra impulse to bodies every time a contact occurs
> 2) Use ODE build-in tweak: bounce_velocity. The problem is that 
> bounce_velocity is one for 2 contacted bodies.
>
> How to set bounce velocity different for every contacted body?
>
> Thanks.
> _______________________________________________
> ODE mailing list
> ODE at ode.org
> http://ode.org/mailman/listinfo/ode 



More information about the ODE mailing list