Make score spin out in front of you
by Andy Hawkins · in Torque Game Engine · 10/20/2007 (3:55 am) · 7 replies
So I want to do an effect where the score (say 250 or 500) spins out in front of you and spins away into the distance, but it has to alway remain in front even if I turn my point of view.
Is this a vector math thing, casting a ray out in front using a look vector or can it be done more simply?
Is this a vector math thing, casting a ray out in front using a look vector or can it be done more simply?
#2
10/20/2007 (6:07 pm)
Can I put a 3d object in this gui? It has be a 3d object. However for prototyping I will take your advice and do a 2d version just to keep development ticking along, thanks!!
#3
10/21/2007 (12:02 pm)
Not as far as I know, all controls are 2d flat on the screen. If you want a 3d object then it would have to be a world object.
#4
10/21/2007 (1:18 pm)
Sure you could...you could try using a GuiObjectView to display a 3d object in a Gui on screen. Then you could adjust the camera view within the Gui to make it smaller and smaller.
#5
10/21/2007 (3:50 pm)
Andy, this resource allows you to display gui controls attached to the world objects.
#6
10/21/2007 (5:06 pm)
Thanks that looks pretty good. Thanks guys.
#7
10/23/2007 (3:23 pm)
If you go the UI route, be VERY CAREFUL to turn any settings of extent and position fields into integer values as you finally set them. You may also run into a lot of screen resolution dependency issues that have to be accounted for in your Gui element positioning calculations. (If you allow the user to select the screen resolution.)
Torque Owner Steve D