Re: moving a Object
Kjus Lasse <[email protected]>
| Newsgroups | gmane.comp.lib.ode |
|---|---|
| Message-ID | <[email protected]> |
Hi, okay it is possible to move Objects. My current approach is: 1. Disable Gravity (dBodySetGravityMode) 2. set Position (dGeomSetPosition) 3. Enable Gravity (dBodySetGravityMode) again Now I understand what you mean with "applying forces". The problem when I grap an Object and throw it away, everything is fine till I enable Gravity. Then the Object falls straight down to the ground, but I want a nice curve. How can I realize this? Do I have to calculate resulting forces by my own? Kjus ----- Ursprüngliche Mail ---- Von: Mark Williams <[email protected]> An: [email protected] Gesendet: Donnerstag, den 4. Oktober 2007, 19:09:17 Uhr Betreff: Re: [ODE] moving a Object > Hi, > I try to move Objects or set a new Position to some of my > Physicobject. (dGeomSetPosition(po->geom[0], pos[0], pos[1], pos[2]);) > It is also possible to move the Objects on the ground (x-z Plain). My > Problem is, when I try to move a Object against the gravity - it is > not possible. > Can I enable gravity for only the Object I want to move. Or is there > any other approach to move Object or set the position! You can disable gravity on a per-object basis - see the docs for dBody. You may also want to try applying forces to your object to make it move instead of setting its position directly. Cheers, Mark _______________________________________________ ODE mailing list [email protected] http://ode.org/mailman/listinfo/ode __________________________________ Yahoo! Clever - Der einfachste Weg, Fragen zu stellen und Wissenswertes mit Anderen zu teilen. www.yahoo.de/clever _______________________________________________ ODE mailing list [email protected] http://ode.org/mailman/listinfo/ode