[ODE] moving a Object
Kjus Lasse
pseudoprimals at yahoo.de
Sat Oct 6 05:26:46 MST 2007
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 <mark at image-engine.com>
An: ode at ode.org
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
ODE at ode.org
http://ode.org/mailman/listinfo/ode
__________________________________
Yahoo! Clever - Der einfachste Weg, Fragen zu stellen und Wissenswertes mit Anderen zu teilen. www.yahoo.de/clever
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ode.org/pipermail/ode/attachments/20071006/3137be00/attachment.htm
More information about the ODE
mailing list