[ODE] gravity per object?

George Birbilis birbilis at kagi.com
Wed Mar 24 12:25:13 MST 2004


why not just add some extra force to that body?

that is disable gravity for that body (I suppose on can do it somehow
without having to set mass=0 for that body), then update direction and
length for some virtual force attatched to the body

btw, is there any concept of force-fields in ODE?

also, can one do bodies that pull each other? (static electricity or
magnetism for example)

-----
George Birbilis (birbilis at kagi.com)
http://www.kagi.com/birbilis
--------------
----- Original Message ----- 
From: "Nguyen Binh" <ngbinh at glassegg.com>
To: "Fabian Mathews" <supagu at hotmail.com>
Cc: <ode at q12.org>
Sent: Wednesday, March 24, 2004 4:14 AM
Subject: Re: [ODE] gravity per object?


> 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
> ---------------------------------------------------------------------
>
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
>



More information about the ODE mailing list