Hello, I'm having trouble with getting camera easeOptions to work. I want to create a cinematic basically which executes some commands after some time has passed. While the cinematic works and the camera positions do change, my main issue is with easeOptions not having any effect, meaning that going from point A to point B is instant.
My code in question can be seen below:
const vetAmbulance = world.getDimension("overworld").getEntities({ type: "myname:vet_ambulance", tags: ["minigame_van"] })[0];
if (!vetAmbulance) return;
//Initial Camera Angle
system.runTimeout(() => {
player.camera.setCamera("minecraft:free", {
location: { x: 173, y: -41, z: -322 },
rotation: { x: 20, y: 0 }
});
player.teleport({x:188, y:-43, z:vetAmbulance.location.z})
player.setRotation({x:0,y:90})
},10);
//
system.runTimeout(() => {
player.camera.setCamera("minecraft:free", {
location: { x: 156, y: -41, z: -321 },
rotation: { x: 20, y: 0 },
easeOptions: {
easeTime: 8.0,
easeType: "Linear"
}
});
}, 20);
system.runTimeout(() => {
player.camera.setCamera("minecraft:free", {
location: { x: 172, y: -41, z: -321 },
rotation: { x: 20, y: 0 },
easeOptions: {
easeTime: 6.0,
easeType: "Linear"
}
});
}, 180);
system.runTimeout(() => {
player.camera.clear()
}, 300);
}```