Skip to content

Instantly share code, notes, and snippets.

View Maesla's full-sized avatar

Manuel Espino Maesla

  • Madrid
View GitHub Profile
@Maesla
Maesla / InertiaTensorUtils.cs
Created April 12, 2022 09:18
Inertia Tensor Utils for Unity
/// Author: Manuel Espino.
/// github: https://github.com/Maesla
/// unity forum: https://forum.unity.com/members/maeslezo.863356/
/// Utilities to get the inertia tensor matrix from a rigidbody
/// and to get the inertia tensor and inertia tensor rotation from a inertia tensor matrix
///-----------------------------------------------------------------
using UnityEngine;
public static class InertiaTensorUtils
@Maesla
Maesla / EventClass.cs
Created March 17, 2022 08:29
Nunit helper class for testing events, custom constraint and fluent assertion included
using NUnit.Framework.Constraints;
public class EventClass
{
public int CallCount { get; private set; }
public void Callback()
{
CallCount++;
}