[ODE] gravity per object?

Nguyen Binh ngbinh at glassegg.com
Wed Mar 24 09:14:10 MST 2004


Hi Fabian,

FM> I'm wanting to set a seperate gravity direction on each object....
FM> is this possible with ODE?

    Officially No!
    But with a little hack you can. That's the beauty of open-source.

    One of the way to do is:
        + Add gravity variable in body
        + Use current body's gravity instead of global in Step and
        Stepfast.

    But I'm curios why you need that?

-- 
Best regards,

---------------------------------------------------------------------
   Nguyen Binh
   Software Engineer
   Glass Egg Digital Media
   
   E.Town Building  
   7th Floor, 364 CongHoa Street
   Tan Binh District,
   HoChiMinh City,
   VietNam,

   Phone : +84 8 8109018
   Fax   : +84 8 8109013

     www.glassegg.com
---------------------------------------------------------------------



More information about the ODE mailing list