steffenk Posted July 7, 2015 Share Posted July 7, 2015 Hi everyone, iam using Unity for a long time and im realy fine with it. But for my new project i choosed Babylon (because it works in mobile browsers ). For the last weeks i read in the documentation and did some tutorials. But something is still a little unclear to me and the reason might be iam thinking to much in a unity way. Her're some cases i just dont get: User Interfaces - schould i just use html elements overlapping the canvas or is there a more 'elegent' way? Inputs - Unity provides the huge Input class which abstracts keyboard events, controller inputs, tochinputs and all the nice stuff which prevents me for reinventing the wheel all the time . whats best practice in Babylon? Deltatime - usualy , when i do timerelevant stuff, i'm accustomed to use deltatime (the time passing between 2 frames) but i couldnt find something simular in Babylon Constrains/locking movement - for example how can i preserve a physicaly obejct for rotation arround its Y-axis thnaks for your answers edit: is there any kind of 'whole project workshop' out there? Most tutorials, i found, a very short and breaty beginnerish ^^ Quote Link to comment Share on other sites More sharing options...
Temechon Posted July 7, 2015 Share Posted July 7, 2015 Hey there, User interface, you can use native HTML/CSS, or a custom extensions like bGUI or castorGUI (https://github.com/BabylonJS/Extensions)Inputs : I'm not aware of any extensions for this.Deltatime : you can use engine.getDeltaTime() https://github.com/BabylonJS/Babylon.js/blob/master/src/babylon.engine.js#L1891Constraints: I'm not sure about this but I don't think something like this exists.Tutorials: you can find a lot of tutorials in the doc (http://doc.babylonjs.com/) or on my website (http://pixelcodr.com/) Good luck Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 7, 2015 Share Posted July 7, 2015 ANd don't forget about the Unity Exporter:https://github.com/BabylonJS/Babylon.js/tree/master/Exporters/Unity%205 Quote Link to comment Share on other sites More sharing options...
steffenk Posted July 9, 2015 Author Share Posted July 9, 2015 Thamks Deltakosch Temechon, your tutorials are fantastic In your last physics tutorial (http://pixelcodr.com/tutos/physics/physics.html) how would you preserve the green cube to rotate around the Y axis when it hits the wall not exatly straight? Quote Link to comment Share on other sites More sharing options...
Wingnut Posted July 10, 2015 Share Posted July 10, 2015 Hi gang. I've been looking-at http://www.zebkit.com/ Zebra Canvas-based GUI thing. Smells kind of good. Maybe I could use it to make this fake dashboard... into a REAL one... http://playground.babylonjs.com/#1VXHZA Maybe import Zebra into a playground with the Jerome Maneuver... http://playground.babylonjs.com/#1VXHZA#5 ...and start playing. The bottom area is now a canvas and Zebra is on-board. iiceman and gryff 2 Quote Link to comment Share on other sites More sharing options...
gryff Posted July 10, 2015 Share Posted July 10, 2015 @Wingy: Another couple of interesting demos. I just wish that all of these demos could be found in one place - there must be over a hundred by now that are scattered everywhere. I'm no great coder - so I learn by looking at the code created by others.-then hacking it Learning by example? And you provide a lot of examples - but they can be hard to find. Sorry, don't want to hack this thread- just wanted to comment on your efforts. cheers, gryff Quote Link to comment Share on other sites More sharing options...
iiceman Posted July 10, 2015 Share Posted July 10, 2015 I second what gryff said. Could we have a list of all demos ever made? That would be awesome. Hours of fun clicking trough all of them and seeing what funky stuff people did there gryff 1 Quote Link to comment Share on other sites More sharing options...
Temechon Posted July 10, 2015 Share Posted July 10, 2015 Why not add a new page in the documentation ? Quote Link to comment Share on other sites More sharing options...
Wingnut Posted July 10, 2015 Share Posted July 10, 2015 RE: Master playgrounds list... let's head over to Tutorial Talk, guys . This Unity-to-Babylon subject is pretty fresh and important. Quote Link to comment Share on other sites More sharing options...
steffenk Posted July 11, 2015 Author Share Posted July 11, 2015 Thanks for hijacking my thread, guys @Temechon: how would you avoid the green cube, in your last physics tutorial, rotating arround its vertical axis? Quote Link to comment Share on other sites More sharing options...
Temechon Posted July 12, 2015 Share Posted July 12, 2015 Steffenk, I don't know at all. I looked for it in Oimo but it doesn't seem to have axis constraint like you need.I add this development to my backlog Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.