[ODE] ? about dAddBodyForce

tomek klinikk at o2.pl
Mon Aug 21 14:58:34 MST 2006


Hi,
  
> When I press the forward key in my application I call
> dBodyAddForce (..)

> How else can I do this?
  
You can change linear speed

--== pseodo c++ ==--

if ( Length (dBodyGetLinearSpeed() ) > MAX_SPEED )
{
   direction= Normalize (dBodyGetLinearSpeed());
   dBodySetLinearSpeed( direction* MAX_SPEED );
}

-- 
Tomek Klin



More information about the ODE mailing list