Skip to content

Instantly share code, notes, and snippets.

@MattGen
MattGen / CopterControl.cs
Created November 29, 2021 20:25
Rust-like mini copter code (Unity)
using System.Collections.Generic;
using UnityEngine;
public class CopterControl : MonoBehaviour
{
public float thrust;
public ForceMode forceMode;
public float rotSpeed;
@MattGen
MattGen / PlaceTreeShadowCasters_LOD.cs
Last active November 2, 2017 18:35 — forked from rmalecki/PlaceTreeShadowCasters.cs
Unity 5: Create stand-in geometry for Terrain trees to bake correct lightmaps
using UnityEngine;
using UnityEngine.Rendering;
using UnityEditor;
public class PlaceTreeShadowCasters
{
[@MenuItem ("Terrain/Place Tree Shadow Casters")]
static void Run()
{