Skip to content

Instantly share code, notes, and snippets.

View ttalexander2's full-sized avatar

Thomas Alexander ttalexander2

View GitHub Profile
@ttalexander2
ttalexander2 / BinaryTreePacker.cs
Last active December 18, 2024 21:11
Binary Tree Image Packer for C# ( .NET Framework)
using System;
using System.Drawing;
namespace TexturePacker
{
public class PackedNode
{
public PackedNode Left { get; private set; }
public PackedNode Right { get; private set; }
public System.Drawing.Rectangle Rect { get; private set; }
@ttalexander2
ttalexander2 / SecondOrderMotion.cs
Created June 30, 2022 02:41
Second Order Dynamic Movement in Unity
//This method was derived from the video by t3ssel8r found here: https://www.youtube.com/watch?v=KPoeNZZ6H4s
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SecondOrderMotion : MonoBehaviour
{
[Range(0.001f, 20)]
public float F = 2;