Sen Saurav Posted May 17, 2020 Share Posted May 17, 2020 https://playground.babylonjs.com/#A9MZL8#39 Hello everyone, I try to create an earthquake game with Babylon js. For create an earthquake effect I want to rotate my follow camera. like thishttps://www.babylonjs-playground.com/#BYG518#1 When I try to do the same thing on my project it throws an error like “Cannot read property ‘rotation’ of undefined”. But if I put the registerBeforeRender is end of the code then it show “Uncaught TypeError: Cannot read property ‘registerBeforeRender’ of undefined” My main problem is, why registerBeforeRender function is undefined. Could, anyone tell me what’s the mistake I made in here? Any help would be ok. Thank you, everyone. 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.