Skip to content

Instantly share code, notes, and snippets.

View Lorenzo501's full-sized avatar
🐲
Making dreams come to life!

Lorenzo Pappalettera Lorenzo501

🐲
Making dreams come to life!
View GitHub Profile
@AngryAnt
AngryAnt / GravityWell.cs
Created August 18, 2011 09:01
An example of how to easily do an inexpensive alternative gravity setup (untested).
// GravityObject.cs
using UnityEngine;
using System.Collections;
[RequireComponent (typeof (Rigidbody))]
public class GravityObject : MonoBehaviour
{
public float gravityModifier = 1.0f;
@AngryAnt
AngryAnt / Hover.cs
Created July 15, 2011 09:48
Very simple hover script. Use in conjunction with WASD controller handling planar movement.
using UnityEngine;
public class Hover : MonoBehaviour
{
public float maxDistance, maxForce;
private Vector3 forceVector;
@Ciantic
Ciantic / keyboardlistener.cs
Created July 11, 2010 17:33
C# Keyboard listener
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Windows.Input;
using System.Windows.Threading;
using System.Collections.Generic;
namespace Ownskit.Utils
{