Skip to content

Instantly share code, notes, and snippets.

View mnogue's full-sized avatar
:octocat:
Hello there!

Marti-Joan Nogué Coll mnogue

:octocat:
Hello there!
View GitHub Profile
using System;
using UnityEngine;
using UnityEngine.Playables;
public class PlayAnimation : MonoBehaviour
{
public Animator animator;
public AnimationClip clip;
[NonSerialized] private PlayableGraph m_Graph;
@mnogue
mnogue / ToonMotion.cs
Created January 13, 2019 20:43
Custom frame-per-second 3D animations for Unity3D. Based on Spider-Man: Into the Spider-Verse movie
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ToonMotion : MonoBehaviour
{
private class Snapshot
{
public Transform transform;
public Vector3 position;
@mnogue
mnogue / VirtualJoystick.cs
Last active February 16, 2018 20:22
Virtual joysticks for Unity3D
/*
* The following code is part of a tutorial.
* http://catsoft-studios.com/virtual-joysticks-for-unity3d-mobile-games
*
**/
using UnityEngine;
using System.Collections;
public class VirtualJoystick : MonoBehaviour