2D plane to always face to camera?

Any suggestions as to where I might begin to implement a behaviour that would force a 2D plane to always orient itself to directly face the camera. I’m trying to achieve an effect similar to this https://twitter.com/fromsmiling/status/729345627482529792 …and would ideally like to create a script that I can simply apply to all objects that require this behaviour.

This project should be what you want:

https://playcanvas.com/project/353938/overview/tutorial-billboards

The billboarding effect is achieved with this script:

https://playcanvas.com/editor/code/353938/billboard.js

2 Likes