Hi guys. Just for fun, I thought I would attempt a “bouncy camera” animation (arc-cam target… y-axis only, so far). No keyframe animation, here. I’m letting my favorite band play it… Looper and The Cosines.
Click on canvas. Ya can’t start another animation until first is finished. (yawn). This is a “diminishing” bounce… like what might happen when your space station is hit by a photon torpedo. It has a serious drawback… not putting camera .target.y and/or .beta at same position when the anim started. It will be somewhat different… but that’s what a strong torpedo hit might do, too.
The chances of this animation… running at the same speed… on all devices… I dunno about that. Generally speaking… mix Wingnut and math, and ya better have BJS catastrophic scene-explosion insurance. heh.
Yeah, I know. Camera.target is not the same as camera.beta, but, I was lazy. At least I didn’t poke random small values at canvas.style.marginTop/marginLeft… which would have been SERIOUSLY lazy.
Ok, fine, here’s the same bounce… but ALSO happening on camera.beta… which, for an arcCam… can be loosely-considered as its y-position. https://www.babylonjs-playground.com/#24SBV7#24