Skip to content

Instantly share code, notes, and snippets.

View burakkurkcu's full-sized avatar
🎯
Focusing

Burak Kurkcu burakkurkcu

🎯
Focusing
View GitHub Profile
@nucleartide
nucleartide / DragPiece2D.cs
Created November 25, 2013 08:23
A C# script for Unity that allows you to drag 2D rigidbodies around. Works with Unity 4.3's Box2D wrappers.
using UnityEngine;
using System.Collections;
public class DragPiece2D : MonoBehaviour {
public float dampingRatio = 5.0f;
public float frequency = 2.5f;
public float drag = 10.0f;
public float angularDrag = 5.0f;
private SpringJoint2D springJoint;