Integrating ODE in Virtools

2 views
Skip to first unread message

marius...@gmail.com

unread,
Jul 3, 2009, 12:20:04 PM7/3/09
to ode-users
Hi,

I'm currently working on a project to integrate a car model made in
ode, in Virtools. Virtools is a powerful engine for creating games,
that has it's own physics engine (with licence), but one can integrate
his own engine if he so desires.
When I run my car moder with DrawStuff everything works fine, the
care accelerates, I change gears etc. I use the same code and
integrate it in Virtools building blocks.Then I run a simulation
inside Virtools. I let the car drop from a high altitude to check that
everything is initialised correctly and it is. It falls down, it hits
the ground, I can even se the suspensions working. The I stear left
and right and it works. But when I try to accelerate it won't budge.
The wheeles just wont turn and I don't understand why. Keep in mind
that the same code is used in both simulation. Same weights, same
gravity, same dimensions, same everything.
Is there anyone who could know where the bug lies?
Like with DrawStuff, I recover the carbody's and wheels' positions
and rotation matrixes in order to move the 3D objects in Virtools. I
do not understand what could be happening.
Thanx for any ideas that you might have.

Jon Watte

unread,
Jul 3, 2009, 2:51:49 PM7/3/09
to ode-...@googlegroups.com
marius...@gmail.com wrote:
> The wheeles just wont turn and I don't understand why. Keep in mind
> that the same code is used in both simulation. Same weights, same
> gravity, same dimensions, same everything.
> Is there anyone who could know where the bug lies?
>


This doesn't sound like a bug in ODE at all. Perhaps you're not getting
the proper input to the proper function to apply force/torque to the car?

Sincerely,

jw


--

Revenge is the most pointless and damaging of human desires.

marius...@gmail.com

unread,
Jul 6, 2009, 5:39:28 AM7/6/09
to ode-users
Yes you're right, I found the problem finally. I declared the erp and
cfm variables as dReal. But they were read from Virtools as inputs,
and as Virtools didn't know what dReal is, it assigned random values
to cfm and erp... That is why I had errors. I just had to put them
float and that was that.

On Jul 3, 8:51 pm, Jon Watte <jwa...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages