Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Ikalou
Ikalou / gist:15737d47e3b4ba059877e0b08404c5d9
Created December 26, 2023 16:53
NetworkTransformMirage.cs
// vis2k:
// base class for NetworkTransform and NetworkTransformChild.
// New method is simple and stupid. No more 1500 lines of code.
//
// Server sends current data.
// Client saves it and interpolates last and latest data points.
// Update handles transform movement / rotation
// FixedUpdate handles rigidbody movement / rotation
//
// Notes:
@Ikalou
Ikalou / gist:318c4e4e91acd5b39ec934f1ebfff686
Created December 26, 2023 16:53
NetworkTransformClassic11.cs
// vis2k:
// base class for NetworkTransform and NetworkTransformChild.
// New method is simple and stupid. No more 1500 lines of code.
//
// Server sends current data.
// Client saves it and interpolates last and latest data points.
// Update handles transform movement / rotation
// FixedUpdate handles rigidbody movement / rotation
//
// Notes:
@Ikalou
Ikalou / gist:0a13eef2346935c498b0a1ff9b421a02
Created December 26, 2023 16:51
NetworkTransformClassic.cs
// vis2k:
// base class for NetworkTransform and NetworkTransformChild.
// New method is simple and stupid. No more 1500 lines of code.
//
// Server sends current data.
// Client saves it and interpolates last and latest data points.
// Update handles transform movement / rotation
// FixedUpdate handles rigidbody movement / rotation
//
// Notes:
{
"kv": [
{ "id": 1, "key": "_", "value": "_" }
]
}
@Ikalou
Ikalou / db.json
Created May 18, 2020 16:32
Test json-server
{
"posts": [
{
"id": 1,
"title": "Post 1"
},
{
"id": 2,
"title": "Post 2"
},
From e95af80064ec8e20790daeb002d8de1d74e3bf80 Mon Sep 17 00:00:00 2001
From: Vianney Petit <xxxxx@gmail.com>
Date: Sun, 6 Nov 2016 17:26:41 +0100
Subject: [PATCH] Add plugins cache hack
---
SupRuntime/src/index.ts | 46 +++++++++++++------
plugins/default/typescript/runtime/script.ts | 69 +++++++++++++++++++++-------
2 files changed, 83 insertions(+), 32 deletions(-)
#!/bin/bash
SP_CORE_DIR="$CI_PROJECT_DIR/superpowers/core"
SP_GAME_DIR="$SP_CORE_DIR/systems/game"
BUILD_DIR="$CI_PROJECT_DIR/build"
# Initialize build dir...
mkdir -p "$BUILD_DIR"
rm -rf "$BUILD_DIR"/*
@Ikalou
Ikalou / git_and_unity.md
Last active April 22, 2024 04:01
Git and Unity

EDIT: this is an old post and a lof the information in this document is outdated.

Using Git with Unity

Git logo

Git is a popular free and open source distributed version control system.

I am new to Unity, but as a long time git user, I wanted to use git for my