Jump to content

RegisterBeforeRender function is undefined

Sen Saurav

Recommended Posts

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 this

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.

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...