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
| using UnityEngine; | |
| [RequireComponent(typeof(Collider))] | |
| public class SnapToGround2 : MonoBehaviour | |
| { | |
| public GameObject objectToSpawn; | |
| public float timeToSpawn = 0.1f; | |
| void SnapRotatedObjectToGround() | |
| { |
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
| /************************************************************ | |
| * Better Singleton by David Darias | |
| * Use as you like - credit where due would be appreciated :D | |
| * Licence: WTFPL V2, Dec 2014 | |
| * Tested on Unity v5.6.0 (should work on earlier versions) | |
| * 03/02/2017 - v1.1 | |
| * **********************************************************/ | |
| using System; | |
| using UnityEngine; |
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
| <?php | |
| declare(strict_types = 1); | |
| ini_set("memory_limit", "-1"); | |
| $algo = "xxh64"; | |
| $dictionary = "crackstation.txt"; | |
| // MODE_dict_in_ram_hashes_in_ram($algo, $file); | |
| MODE_dict_on_disk_hash_on_sqlite($algo, $dictionary); |
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
| /* | |
| Delta Compression by Glenn Fiedler. | |
| This source code is placed in the public domain. | |
| http://gafferongames.com/2015/03/14/the-networked-physics-data-compression-challenge/ | |
| */ | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <assert.h> | |
| #include <string.h> |
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
| ########################################################## | |
| # Custom Blender -> Unity Pipeline | |
| # http://www.mimimi-productions.com, 2014 | |
| # Version: 1.9.M2 | |
| # Only for Blender 2.58 and newer | |
| # | |
| # Thanks to kastoria, jonim8or and Freezy for their support! | |
| # Special thanks to Sebastian hagish Dorda for implementing the sort methods. | |
| # http://www.blenderartists.org | |
| ########################################################## |
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
| function MercatorToLatLon(mercX, mercY) { | |
| var rMajor = 6378137; //Equatorial Radius, WGS84 | |
| var shift = Math.PI * rMajor; | |
| var lon = mercX / shift * 180.0; | |
| var lat = mercY / shift * 180.0; | |
| lat = 180 / Math.PI * (2 * Math.atan(Math.exp(lat * Math.PI / 180.0)) - Math.PI / 2.0); | |
| return { 'Lon': lon, 'Lat': lat }; | |
| } |