Forum

collision detection[solved]

08 January 2016 01:15 #6304
Hello everyone!
Happy new year!

I am building a mini game inspired by infinity run game. I cant figure out if i can detect collision between my character and object's in his way via nodes.

I fear i have to mess with javascript… I will read the code of the cartoon room first!
08 January 2016 13:55 #6327
Hello!

Currently it's not possible to do collision detection using logic nodes, so it's possible you have to do it using JavaScript. And yes cartoon interior is a nice introduction tutorial.
Blend4Web Team
https://twitter.com/AlexKowel
08 January 2016 15:51 #6336
Is it possible to trigger a node tree with javascript?
08 January 2016 20:26 #6342
Is it possible to trigger a node tree with javascript?
Nope, js/nodes mix is not supported. Our motivation behind this is that if somebody is prepared to code then he/she would better use pure javascript: app architecture will be more clear.
Development Lead | Twitter
08 January 2016 23:56 #6361
I totally understand. It was more of a way to try to avoid going full JS. It looks like I will have to act like a big boy now.
Nevertheless I really think that you could, with a few extra new nodes, be as powerful as the BGE. Specially with the all node 2.8 promises… Did you ever think of that as a opportunity? Interactive web is like the future. By future I mean Tomorrow not next year


EDIT :
I have controls for my character in a node-tree. Can I detect collision trigger a animation in JS while keeping controls in node?
09 January 2016 19:18 #6376
Nevertheless I really think that you could, with a few extra new nodes, be as powerful as the BGE. Specially with the all node 2.8 promises… Did you ever think of that as a opportunity?
We would definitely improve logic editor. Actually, that's what we were discussing with Ton Roosendaal. Users have to be able to prepare everything in Blender and just export it to b4w without any additional coding. But anyway, serious projects should be written with JS because of performance matters and flexibility which can't be achieved with node logic.

I have controls for my character in a node-tree. Can I detect collision trigger a animation in JS while keeping controls in node?
Yes, this should work.
Blend4Web developer
10 January 2016 00:03 #6380
Thank you!
Can't wait to see new nodes.

So if i understand well : one could mix Nodes and JS like we use sensor and actuators and Python in BGE? That would really rock!
10 January 2016 01:21 #6385
So if i understand well : one could mix Nodes and JS like we use sensor and actuators and Python in BGE? That would really rock!
Yes. Though, such setups haven't been really well tested and some potential bugs may occur. But I hope, they will (if they will) take place in very rare cases.
Blend4Web developer
11 January 2016 11:49 #6431
But I hope, they will (if they will) take place in very rare cases.
Don't worry! I'll find out wherever they hide!

Sounds awesome already !

29 April 2016 15:13 #9143
Reply to post of user Yuri Kovelenov
Nope, js/nodes mix is not supported. Our motivation behind this is that if somebody is prepared to code then he/she would better use pure javascript: app architecture will be more clear.
We kinda changed our minds This is now possible! (as of 16.04).
Development Lead | Twitter
 
Please register or log in to leave a reply.