lemon0721 Posted May 18, 2019 Share Posted May 18, 2019 (edited) I have just started to learn the Babylon.js and I want to create an effect that loads a scene including some terrain and buildings, and then mouse clicks on the building and the camera lens will have an animation fly over to look at the building....how can I realize it?please help me !(Now I load the scene from Unity by using the Unity Exporter plugin,and get the building , i want to make an animation about camera ,then use ths API ''actionManager.registerAction(new BABYLON.PlayAnimationAction({...}); "but i don't konw what parameters are... Edited May 18, 2019 by lemon0721 Quote Link to comment Share on other sites More sharing options...
lemon0721 Posted May 19, 2019 Author Share Posted May 19, 2019 maybe I should tell my Code: building.actionManager.registerAction(new BABYLON.PlayAnimationAction(BABYLON.ActionManager.OnLeftPickTrigger,"xSlide",0,10) I don't know how can I define the target of the animation; Quote Link to comment Share on other sites More sharing options...
MarianG Posted May 21, 2019 Share Posted May 21, 2019 Hi @lemon0721 If you didn't do it yet, please post your question here https://forum.babylonjs.com Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.