Jlobblet
|
  |
| Joined: 05 Sep 2010 |
| Total Posts: 587 |
|
|
| 23 Dec 2012 01:40 PM |
I'm working with a GUI on a screen, to place over a player in the 3D workspace onto the 2D PlayerGui, using the algorithm:
xs = O.Z/(O.Z*fx)
Where xs is the X co-ord on the screen, O.X is the X position of the object relative to the camera (and the same with O.Z, respectively) and I was wondering if anyone knows the factor (fx) for the X and Y before I start brute-forcing through to develop a pattern?
The main problem I've had so far is the GUI is not positioned accordingly, despite testing multiple factors. I wouldn't be suprised if I need to change the factor while the camera moves.
If you do know thanks in advance
~if not ok then return end |
|
|
| Report Abuse |
|
megaguy44
|
  |
| Joined: 28 Sep 2008 |
| Total Posts: 1066 |
|
|
| 23 Dec 2012 02:58 PM |
Why not use a billboard GUI?
print('Hello World!') |
|
|
| Report Abuse |
|
Jlobblet
|
  |
| Joined: 05 Sep 2010 |
| Total Posts: 587 |
|
|
| 23 Dec 2012 03:16 PM |
I want it only to be available to one person(via the PlayerGui); the work for the actual positioning is done, I just need to get an algorithm for the factors.
~if not ok then return end |
|
|
| Report Abuse |
|