Skip to content

Instantly share code, notes, and snippets.

View ShacharWeis's full-sized avatar

Shachar "Vice" Weis ShacharWeis

View GitHub Profile
@ShacharWeis
ShacharWeis / FancyDebugLogger.cs
Created August 23, 2025 15:01
Debug log helper for Unity
using UnityEngine;
using System;
using System.Linq.Expressions;
using System.Text;
using System.Globalization;
using System.Collections.Generic;
namespace Packet39
{
public static class FancyDebugLogger
using System;
namespace EulerNumberGenerator
{
class Program
{
static Random rand = new Random();
static void Main(string[] args)
{
@ShacharWeis
ShacharWeis / StabilizedObject.cs
Last active January 26, 2018 22:41
A stabilized object for Unity3D. Put a camera on it and it becomes a gimbal. Useful for recording user POV in VR.
using UnityEngine;
public class StabilizedObject : MonoBehaviour
{
public Transform Parent; // Transform to track rotation
public bool SmoothPan = true;
public bool SmoothRoll = true;
public bool SmoothTilt = true;
public float SmoothingMinimum = 0.05f;
public float SmoothingMaximum = 0.005f;