Skip to content

Instantly share code, notes, and snippets.

View Lysdora's full-sized avatar
🏠
Working from home

murloc-craft Lysdora

🏠
Working from home
View GitHub Profile
@MadMaxMcKinney
MadMaxMcKinney / PlayerController.cs
Created May 9, 2017 19:08
A simple 2D player controller with instant movement and mouse tracking using a rigidbody for physics checks including rotation.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerController : MonoBehaviour {
public float speed = 5f;
private Rigidbody2D rb;