Hello I am looking for help.
I currently have an Arc rotate camera that i want to animate from one point to another.
I have a button that has a left and right click. When you click the buttons, this subtracts or adds to the camera.beta values by about 0.54. However, when i try to animate the camera with this.camera.position, the values before and after i subtract the beta values are the same.
Ex:
let current = camera.position (vector3)
(Button clicked) (camera.beta - 0.54)
let destination = camera.position (vector3)
let easing = new QuadraticEase()
easing.setEasingMode(EasingFunction.EASINGMODE_EASEIN)
Animation.CreateAndStartAnimation(
“slideIn”,
camera,
“position”,
30,
60,
current,
destination,
0,
easing,
callback
)
So what am i doing wrong here? Should i be animating the camera.beta values instead and what does that looks like? I don’t want the camera to snap into place but to smoothly move from the one position to the other. Thanks