Skip to content

Instantly share code, notes, and snippets.

View sk-zk's full-sized avatar
😶‍🌫️

skzk sk-zk

😶‍🌫️
  • Germany
View GitHub Profile
@3dln
3dln / CameraOrbit.cs
Last active February 11, 2025 04:35
A simple Unity C# script for orbital movement around a target gameobject
// A simple Unity C# script for orbital movement around a target gameobject
// Author: Ashkan Ashtiani
// Gist on Github: https://gist.github.com/3dln/c16d000b174f7ccf6df9a1cb0cef7f80
using System;
using UnityEngine;
namespace TDLN.CameraControllers
{
public class CameraOrbit : MonoBehaviour

How to add an image to a gist

  1. Create a gist if you haven't already.
  2. Clone your gist:
    # make sure to replace `<hash>` with your gist's hash
    git clone https://gist.github.com/<hash>.git # with https
    git clone [email protected]:<hash>.git     # or with ssh