Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Billboard scripts for 2d objects to always face camera

$
0
0
Hey guys, I'm trying to use a billboarding script to enable my 2d trees etc. to always face me - and despite trawling the Unity spaces of the internet and trying many different scripts, I can't seem to get any of them to work.
The closest I've got is making my object rotating towards the camera correctly, but it seems to want to lay down (face the sky) and I can't figure out why.

Here's the script I've got at the moment:

Code (CSharp):
  1.  
  2. using UnityEngine;
  3. using System.Collections;
  4.  
  5. public...
Billboard scripts for 2d objects to always face camera

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>