Car.glb does not contain wheel rotation animations

The following is an excerpt from the sample at https://doc.babylonjs.com/features/introductionToFeatures/chap3/caranimation/

Upon closer observation, the wheels are rotating in the case of car.babylon, whereas they do not appear to be rotating in the case of car.glb.

Below is a sample of car.babylon.
https://playground.babylonjs.com/#KDPAQ9#5561
https://assets.babylonjs.com/meshes/car.babylon

Below is a sample of car.glb.
https://playground.babylonjs.com/#KDPAQ9#17
https://assets.babylonjs.com/meshes/car.glb

As this is an introductory article for beginners, it is preferable for the sample code to align with the actual behavior.

Looking into that! thanks for reporting

Thanks!

Sorry for the minor nitpick.

I tried it, and the wheels now rotate, but they seem to be rotating in the opposite direction.

To make the rotation match the direction of movement, do we need to invert the sign?

const wheelKeys = [];
wheelKeys.push({
    frame: 0,
    value: 0
});
wheelKeys.push({
    frame: 30,
    value: -2 * Math.PI   // ← Do we need to invert the sign?
});
animWheel.setKeys(wheelKeys);

I can’t believe i didn’t notice that…

Want to submit a fix to the docs repo?

I have submitted the PR below.

thank you so much :slight_smile:

Thanks!