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 )

2 Likes

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

1 Like

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

1 Like

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

1 Like

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

1 Like

Do you need to update it?

Blockquote

1 Like

I’m already updating everything before everything renders.

1 Like

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

2 Likes

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

1 Like

YOOOO IT WORKS!!! Thanks dude.

1 Like

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