Skip to content

Instantly share code, notes, and snippets.

View deya-0x's full-sized avatar

Aria Belcourt deya-0x

View GitHub Profile
@deya-0x
deya-0x / Godot Merge MeshInstances vertex data snippet
Last active April 5, 2021 06:08
This is just an excerpt of my MeshInstance merge code. This is not meant to create a true single merged mesh for visual use, but to create a single MeshInstance so we can pass the combined vertex data to Detour/Recast for use with https://github.com/TheSHEEEP/godotdetour
private Godot.Collections.Array meshInstances;
private MeshInstance combinedMeshInstance;
private void mergeChildren(bool useLocalSpace = false)
{
findAllMeshInstances(this);
ArrayMesh tempMesh = new ArrayMesh();
SurfaceTool surfaceTool = new SurfaceTool();
surfaceTool.Begin(Mesh.PrimitiveType.Triangles);
@deya-0x
deya-0x / colyseus_ngrok_example.ts
Created August 26, 2019 01:29
This is an example of how to use Ngrok with Colyseus to enable HTTPS on dev environments.
import ngrok from 'ngrok';
import path from 'path';
import express from 'express';
import cors from 'cors';
import { createServer } from 'http';
import { Server } from 'colyseus';
import { monitor } from '@colyseus/monitor';
server_init();