Jump to content

CastorGUI - speedometer and window appears when you hover


DigitalHilsone
 Share

Recommended Posts

Please tell me how to implement the speedometer? It can be in any unit of measurement - kilometers or miles.

 

And yet - how to open a window with the text when you move the sphere (I use them as planets), I would like to hover cursore a window with description.

Link to comment
Share on other sites

Hi,

 

your sphere you add an action with Babylon and when you fly over the sphere you run code that'll open the GUIDialog with dialog.setVisible (true);

 

If you want the GUIDialog directly integrated into the scene, you should use bGUI of temechon.

 

For the speedometer, I have not thought too much about it. it is for you to determine a measurement. that is 1 meter in your games and following the movement of your camera, how long your camera makes for example to make a 1 meters. Then you have to calculate this speed after that you will have a base set. it's an idea.

 

good luck

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