[ODE] Better understanding about simulating surfaces
Jeff Kershner
jeff at jeffkershner.com
Tue Aug 15 13:43:58 MST 2006
This is from the following code running at 75Hz:
const double MAX_STEP = 0.005;
while (elapsedTime > 0.0)
{
const double step = min(MAX_STEP, elapsedTime);
elapsedTime -= MAX_STEP;
dWorldStep(m_World, step);
}
My step size seems to be 0.005 or 0.003 at ever iteration... Is that
acceptable?
-----Original Message-----
From: Megan Fox [mailto:shalinor at gmail.com]
Sent: Tuesday, August 15, 2006 1:37 PM
To: Jeff Kershner
Cc: ode at q12.org
Subject: Re: [ODE] Better understanding about simulating surfaces
Make sure your step size is small (at most 0.01) to reduce bounciness.
Given the speeds at which your pool balls are likely travelling, I'd
probably try and even smaller step size than that... shouldn't matter
terribly much if all you're simulating is the pool table + balls.
On 8/15/06, Jeff Kershner <jeff at jeffkershner.com> wrote:
>
>
>
>
> I am interested in simulating something like a pool ball bouncing off the
> ground. The ball is very dense and when it bounces it should be a very
> short bounce and lay to rest relatively quickly. Right now I am playing
> with the parameters in the NearCallback function and I am getting all
kinds
> of huge bounces.
>
>
>
> How can I get this kind of example to work?
>
>
>
> Thanks,
>
> /jk
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
>
>
>
--
-Megan Fox
Idyllon, LLC
http://shalinor.circustent.us/megan/resume/
More information about the ODE
mailing list