How do I turn 3d space into 2d space?

Hello World!

Before specifying anything, I’m not going to use Roblox’s Camera:WorldToViewportPoint() Cause it is buggy as seen in this screenshot here.

Looking at part:

Looking away at part:

For some reason, it just bugs like that?
So does anyone have a way of translating 3d space to 2d screen space?

( I’m not good at math haha )

What are you trying to do? This is too confusing.

I’m currently trying to track on object by converting 3d space point onto 2d screen space.

So use Camera:WorldToViewportPoint(). It is not buggy.

Look at the screenshots above. When I look away from the object, the gui frame floats in the middle of the screen.

Do you need to update it?

Blockquote

I’m already updating everything before everything renders.

Are you using the depth component? This tells you if the point is in front of / behind the camera.

1 Like

Oh wait, I haven’t tried that. Just a sec

YOOOO IT WORKS!!! Thanks dude.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.