Forum

Unity style Update function

23 January 2018 21:18
Hello!

I'm kinda stumped by this, in three.js you can use a function update(), whereas in blend4web it doesn't seem to be that simple…

How would I go about making a Unity like Update function?
I need it to rotate an object when I click and drag it, amongst other things.

Thanks! :)
24 January 2018 15:16
Hello!

I'm kinda stumped by this, in three.js you can use a function update(), whereas in blend4web it doesn't seem to be that simple…

How would I go about making a Unity like Update function?
I need it to rotate an object when I click and drag it, amongst other things.

Thanks! :)
Hello!

The simplest way to add mouse events interactivity to your scene could be found for example in this code snippet or in this tutorial.
For more complex logic blend4web utilizes sensor manifolds.
Blend4Web Team - developer
Twitter
LinkedIn
 
Please register or log in to leave a reply.