Plane to lookat screen perpendicular direction and not at camera position

camera-controls

#1

Hi everyone.

Just trying out an experiment. Is there a way to make a plane look alway to perpendicular to screen.

It seems to be the current popular way to do this is to set object.lookAt(camera.position)

However, with this method the object tilts will moving. I’m looking to create an effect so that the plane should always look in the direction of the camera while still being parellel to the screen.

I’m sure many people would have came to this need.

Any help is wisely appreciated.


#2

Hi!
I hope, if I got you correctly, then you can try to copy camera’s quaternion to plane’s quaternion:

plane.quaternion.copy(camera.quaternion);


#3

That was spot on.

Thanks a million :grin:


#4

You’re welcome :slight_smile: :beers: