How to make the model move with Animation and Impact checking?

Impact checking:
button.onPointerClickObservable.add(() => {
var speedCharacter = 8;
var gravity = 0.15;
rabbit.ellipsoid = new BABYLON.Vector3(offset - 0.1, offset - 0.1, offset - 0.1);
rabbit.ellipsoidOffset = new BABYLON.Vector3(0, 0, 0);
var forwards = new BABYLON.Vector3(0, 0, offset);
forwards.negate();
rabbit.moveWithCollisions(forwards);
})

Animation:
button.onPointerClickObservable.add(() => {
BABYLON.Animation.CreateAndStartAnimation(“walk”, rabbit, “position.z”, 30, 30, rabbit.position.z, rabbit.position.z + 2, 0);
})

when I use Animation to move,
rabbit.onCollide = function(collidedMesh) {}
onCollide will not callback,
how can i do to make coexistence of the two?

Hey!
Animation does not trigger collision check for performance reason.
I would just recommend to use a setInterval call to manually move the rabbit with moveWithCollisions