Skip to content

Instantly share code, notes, and snippets.

View joergzdarsky's full-sized avatar

Joerg Zdarsky joergzdarsky

  • Frankfurt am Main, Germany
View GitHub Profile
@JakubNei
JakubNei / MyQuaternion.cs
Last active June 8, 2023 17:14
A custom completely managed implementation of UnityEngine.Quaternion. Base is decompiled UnityEngine.Quaternion. Doesn't implement methods marked Obsolete. Does implicit coversions to and from UnityEngine.Quaternion
using System;
using UnityEngine.Internal;
using UnityEngine;
using System.Runtime.Serialization;
using System.Xml.Serialization;
/// <summary>
/// Quaternions are used to represent rotations.
/// A custom completely managed implementation of UnityEngine.Quaternion
/// Base is decompiled UnityEngine.Quaternion
@JakubNei
JakubNei / BaseObject.cs
Created September 19, 2015 14:01
My fancy custom UnityEngine.Transform like setup. Sorry, i just love doing stupid things like this.
/// <summary>
/// Implements basic equals methods and bool converions, similar to UnityEngine.Object
/// </summary>
public class BaseObject
{
public override bool Equals(object obj)
{
return AreObjectsEqual(this, obj as BaseObject);
}
public override int GetHashCode()