New framing behavior's zoom ended observable not fired!

framing behavior’s observable | Babylon.js Playground (babylonjs.com)

it’s a new FramingBehavior(), and its onTargetFramingAnimationEndObservable not fired

but FramingBehavior.ZoomOnMesh’s callback works.

There is no camera target in your PG.
If you set the target, everything works fine.
Example - https://playground.babylonjs.com/#FZXY2I#2

I said it’s a new framing behavior, in my case I have to use new framing beheavior because my arcrotatecamera allow panning, it’s position is changing every second. And I make the framing behavior attached to the camera.

Your modified example - https://playground.babylonjs.com/#KZT1RU#1

1 Like