Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Screen Shaker


jusion
 Share

Recommended Posts

I'm trying to use the TypeScript code as a basis for writing a Javascript plugin for screen shaking. All seems OK, except for a couple of things, which make it inoperable:

a) The file(s) reference camera.worldView, which doesn't exist (anymore?). I'm assuming screenView is a replacement for this?

and, more importantly:

B) The file(s) have methods for preUpdate and postRender, which aren't called by the PluginManager. When changing these to the functions that are (postUpdate and preRender), it leads to broken behavior (screen shakes once, and everything disappears).

 

Any ideas or working implementations of this?

 

Thanks!

Link to comment
Share on other sites

Yeah I think the TS definitions for plugins are quite out-dated. I would suggest just scrolling through the JS source for PluginManager and Plugin and checking it against the definitions file (and fixing it where it's wrong!), at least then you will have a level playing field to start from. Might be worth checking Camera as well (it's a tiny class at least).

 

We're still updating the TS defs, but the more people that can help us the better.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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