ArcRotateCamera can not animating radius and target simultaneously

Changing the order of [targetAnimation,radiusAnimation] on line 46 fixes it, I’m not sure why though.

scene.beginDirectAnimation(arcRotateCamera,[targetAnimation,radiusAnimation],0,frameRate * 2,false)

I guess changing targets might stop the other animation for some reason?

1 Like

It’s weird :sweat_smile:

Whenever the ArcRotateCamera target property is set it runs a function rebuildAnglesAndRadius which overwrites the radius:

The radius property has no Set function, so the radius changes are overwritten before they have any effect on the camera’s position. I’m not sure if it’s really a bug though.

1 Like