Jbullet-jme: wheels does not rotate

Hi there,

I am facing a problem with jbullet vehicle. it works well except that wheels do not rotate while moving.

The same problem comes when I run car demo from jbullet-jme.

Any ideas?


Thanks Normen,

Until 1.0 is released, I tried to do the rotation myself using the following

Quaternion rot = new Quaternion();
    public void update(float time){
        float speed = 40*time;
        for(int i = 0; i < 4; i++){
            WheelInfo wi = car.getWheelInfo(i);
            Vector3f axle = wi.getAxle();
            rot = rot.fromAngleAxis(speed * FastMath.DEG_TO_RAD, axle);

but it didn't work either. What would be the problem?

When do you call PhysicsSpace.update()? You will have to set your own rotation value after the physics have been updated otherwise your value will be overwritten.

Thanks. It works now  :smiley: