Drunken Wrestlers 2

Drunken Wrestlers 2

评价数不足
Hollow Earth
   
奖励
收藏
已收藏
取消收藏
Mods: Maps
文件大小
发表于
更新日期
141.642 MB
2021 年 5 月 14 日 上午 9:51
2021 年 5 月 16 日 上午 9:48
2 项改动说明 ( 查看 )

订阅以下载
Hollow Earth

在 different lizard tank engine 的 1 个合集中
Allosaur Hell's Maps
18 件物品
描述
"There's a world going on, underground." - Tom Waits.
6 条留言
vadiks 2021 年 6 月 3 日 上午 11:47 
i'm not sure how your birds gonna be flying, but you might aswell figure everything out.
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()
vadiks 2021 年 6 月 3 日 上午 11:47 
oh, we need math for that
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);
}
different lizard tank engine  [作者] 2021 年 6 月 3 日 上午 9:21 
I don't have a script for them to move around the map in circles that travel long distances.
vadiks 2021 年 6 月 2 日 下午 4:32 
how exactly
different lizard tank engine  [作者] 2021 年 6 月 2 日 下午 3:50 
I tried, there's no good script I can find to make them actually move around the map like I want them to.
vadiks 2021 年 6 月 2 日 上午 7:47 
cant you force these birds to fly