H
H
HEDAX2020-01-22 14:22:06
C++ / C#
HEDAX, 2020-01-22 14:22:06

How to snap an object to the camera corner?

I have a 3D project in which I need to snap a cube to the camera corner so that at any screen resolution it will always be on the left. Can you please tell me how this can be implemented?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2020-01-22
@freeExec

Launching a beam from the camera
Place a cube on this beam

cub.transform.position = camera.transform.position + ray.direction * 5;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question