Jump to content

From Unity to Babylon


steffenk
 Share

Recommended Posts

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 ^^

Link to comment
Share on other sites

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#L1891

Constraints: 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 :)

Link to comment
Share on other sites

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.  :o

Link to comment
Share on other sites

@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 :o 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 :)

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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