This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace OhiraKyou.Extensions { | |
public static class CollectionExtensions { | |
public static Dictionary<TKey, TValue> WithoutNullKeys<TKey, TValue> (this Dictionary<TKey, TValue> dictionary) { | |
return (from kv in dictionary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using UnityEngine; | |
namespace OhiraKyou.Extensions { | |
public static class RigidbodyExtensions { | |
private static Dictionary<Rigidbody, Vector3[]> velocities = new Dictionary<Rigidbody, Vector3[]>(); | |
private const int VELOCITY_INDEX = 0; |