Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
some explanation!
dont bother about each word since you're not a programmer!
void Start - does shit at the start
void Update - does shit every single frame
center = new Vector3(0;0;0) - point out the center of the map. you might aswell change "Vector3 center" to "public Vector3 center", delete the void start() with everything inside it, and put in coords manually in the editor
rotatearound()
1. we get the axis point, which we gonna have birds flying around at. lets say its coordinates 0;0;0 (center of the map probably)
2. we have a location of birds which is transform.position
we need to move them around that circle. what is the formula of position for circle angle?
WHO CARES! I LIED!
THERE IS AN ALREADY MADE UNITY FUNCTION Transform.RotateAround(); https://docs.unity3d.com/ScriptReference/Transform.RotateAround.html
BASICALLY
you make this script and attach it to a bird!
using unity and other shit;
Vector3 center;
void Start()
{
center = new Vector3(0;0;0)
}
void Update()
{
Transform.RotateAround(center,Vector3.forward,Time.DeltaTime*5);
}