Skip to content

Instantly share code, notes, and snippets.

View sdarkwell's full-sized avatar

S. Darkwell sdarkwell

View GitHub Profile
@JoeCoo7
JoeCoo7 / Components
Last active January 20, 2020 19:45
Component Transform with Scale
using Unity.Entities;
using Unity.Mathematics;
//----------------------------------------------------------------------------------------
[System.Serializable]
public struct ModelMatrix : IComponentData
{
public float4x4 Value
}
public class ModelMatrixComponent : ComponentDataWrapper<ModelMatrix> { }
@Fonserbc
Fonserbc / Easing.cs
Last active February 23, 2024 01:13
Compact and simple easing functions for Unity
using UnityEngine;
/*
* Most functions taken from Tween.js - Licensed under the MIT license
* at https://github.com/sole/tween.js
* Quadratic.Bezier by @fonserbc - Licensed under WTFPL license
*/
public delegate float EasingFunction(float k);
public class Easing