This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This code is licensed under the terms of the MIT license | |
using UnityEngine; | |
public class SunPosition : MonoBehaviour | |
{ | |
[SerializeField, Range(-90f, 90f)] | |
public float latitude = 69.6546f; | |
[SerializeField, Range(-180f, 180f)] | |
public float longitude = 18.9637f; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Batch process timelapses | |
# | |
### About | |
# | |
# This script will find all .mp4 files in the given directory and create an | |
# ./ffmpeg directory with the outputs. You can decide speed multiplier and to | |
# queue all files or just a few. | |
# | |
### Setup | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma strict | |
// Customizable | |
var detectionRange : float = 25.0; // Set from spawn script | |
var updateSkip : float = 5.0; | |
var aSpeed : float = 70; | |
var hostile : boolean = false; | |
var player : boolean = false; | |
private var curVec : Vector2 = Vector2.zero; |