When should classes be registered?

When should classes be registered?

Where should the Havok classes be registered? Like in this code snippet from the quickstart guide. Does it matter where it's registered, or can I just do it anywhere as long as it's only done once?

// Register Havok classes.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi 3dmodelerman,

You should be able to put that in any .cpp file you want to. In our SimpleConsoleMain.cpp, we essentially have it in the .cpp that inits havok, but for our demo framework, it exists in its own AllClasses.cpp. Let me know if you run into any trouble here.


Developer Support Engineer

Leave a Comment

Please sign in to add a comment. Not a member? Join today