纳金网
标题:
Unity3d billboard 公告板技术
[打印本页]
作者:
刀锋狼
时间:
2014-9-30 19:04
标题:
Unity3d billboard 公告板技术
using UnityEngine;
using System.Collections;
public class LookAtCameraYRotationOnly : MonoBehaviour
{
public Camera cameraToLookAt;
void Update()
{
Vector3 v = cameraToLookAt.transform.position - transform.position;
v.x = v.z = 0.0f;
transform.LookAt(cameraToLookAt.transform.position - v);
}
}
作者:
hyui
时间:
2014-10-1 16:04
good knowledge share
作者:
HIDEOKOJIMA
时间:
2014-10-1 16:07
Thanks for sharing this !
欢迎光临 纳金网 (http://old.narkii.com/club/)
Powered by Discuz! X2.5