EmbeddedSoft
Home
Portfolio
All APPs
Android
iOS
Windows
OSX
Blog
Develop
Code
Systems
Develop
FuelSpaceShip
Develop
AngryBots 2 Project
Develop
Neon Battleground performance
Code
APP update progress
Code
Big Apple APPs refresh.
Code
Fixing Arcadian bugs from level 3.
Systems
Corosync, Pacemaker and Ldirectord. HA Load balancer
Systems
When “local storage” is lost in XenServer
Systems
Corosync – Pacemeker boot bug with Debian 7.8
Video
About Us
Contact
Site Menu
Develop
FuelSpaceShip
Code
APP update progress
Code
Big Apple APPs refresh.
Code
Fixing Arcadian bugs from level 3.
Code
Fixing Enemy Spider on Unity 5
Code
UltimateJoystick and AngryBots
Develop
AngryBots 2 Project
Develop
Neon Battleground performance
Develop
Porting Neon Battleground
Camera Orbit C# Unity
Written by:
ranko
-
Category:
Develop
ranko
using UnityEngine;
using System.Collections;
public class CameraOrbit : MonoBehaviour
{
public GameObject target = null;
public bool orbitY = false;
// Use this for initialization
void Start () {
System.GC.Collect();
}
// Update is called once per frame
void Update () {
if (target != null)
{
transform.LookAt(target.transform);
if (orbitY)
{
transform.RotateAround(target.transform.position, Vector3.up, Time.deltaTime * 5);
}
}
}
}
February 26, 2015
Next Post
Destroy by boundary in Unity
Add your comment
Cancel reply
Your email address will not be published.
Required fields are marked
*
Home
Develop
Camera Orbit C# Unity
LIVE NOW! CLICK TO VIEW.
CURRENTLY OFFLINE
Add your comment