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:
Billboard scripts for 2d objects to always face camera
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):
- using UnityEngine;
- using System.Collections;
- public...