Skip to content

Instantly share code, notes, and snippets.

@Oppodelldog
Oppodelldog / godot-addon.py
Last active July 21, 2024 10:43
blender add on that supports export to godot and creating mesh colliders in blender
bl_info = {
"name": "Godot Colliders and Export Addon",
"blender": (3, 0, 0),
"category": "Object",
"description": "Creates and removes collider objects and exports GLTF files easily",
}
import bpy
import os
import re
@Oppodelldog
Oppodelldog / easy-fbx-export.py
Last active January 14, 2024 16:50
Blender add-on that makes FBX export easy. CTRL + SHIFT +F will export the selected object(s) into a configured target folder. Multiple selections will result in multiple exports. Object hierarchy is supported. To initialize the export path search for "Confiure Easy FBX Export Target Path".
import bpy;
import os;
bl_info = {
"name": "Easy FBX Export",
"author": "Oppodelldog",
"description": "This add-on makes FBX export easy. ",
"blender": (3, 4, 1),
"category": "Export",
}
@Oppodelldog
Oppodelldog / Cable.cs
Created January 1, 2024 21:06
Unity - Cable Physics
using System.Collections.Generic;
using UnityEngine;
public class Chain : MonoBehaviour
{
public float width = 0.1f;
public int segments = 10;
public Material material;
public float mass = 0.1f;
public float spring = 10f;
@Oppodelldog
Oppodelldog / Player.gd
Last active December 17, 2023 18:39
some 3d character controller script for godot engine
extends CharacterBody3D
## forward/backward speed
@export var zSpeed = 320
## left/right speed (strafe)
@export var xSpeed=380.5
## speed downwards when falling
@export var ySpeed = 275
## mouse sentitivity for horizontal mouse movement (player rotation around Y)
@export var mouseHSensitivity=0.1
@Oppodelldog
Oppodelldog / easy-gltf-export.py
Last active May 11, 2024 19:44
Blender add-on that makes GLTF export easy. CTRL + SHIFT +D will export the selected object(s) into a configured target folder. Multiple selections will result in multiple exports. Object hierarchy is supported. To initialize the export path search for "Confiure Easy GLTF Export Target Path"
import bpy;
import os;
bl_info = {
"name": "Easy GLTF Export",
"author": "Oppodelldog",
"description": "This add-on makes GLTF export easy. ",
"blender": (3, 4, 1),
"category": "Export",
}
@Oppodelldog
Oppodelldog / start-test-server.bat
Created September 16, 2023 15:39
run testserver for godot web exports
python test-server.py --root "C:GodotProjects\myGame\build\web" --file "mygame.html"
pause
@Oppodelldog
Oppodelldog / easy-obj-export.py
Last active December 10, 2023 12:21
Blender add-on that makes Wavefront obj export easy. CTRL + SHIFT +E will export the selected object(s) into a configured target folder. Multiple selections will result in multiple exports. Object hierarchy is supported. To initialize the export path search for "Confiure Easy OBJ Export Target Path"
import bpy;
import os;
bl_info = {
"name": "Easy OBJ Export",
"author": "Oppodelldog",
"description": "This add-on makes Wavefront obj export easy. ",
"blender": (3, 4, 1),
"category": "Export",
}
@Oppodelldog
Oppodelldog / abolitionist.go
Last active April 1, 2023 13:02
liberate repositories
package main
import (
"context"
"fmt"
"github.com/google/go-github/v50/github"
"github.com/xanzy/go-gitlab"
"golang.org/x/oauth2"
"os"
)
@Oppodelldog
Oppodelldog / main.go
Created August 10, 2022 20:57
win routing - find intersecting routing entries (IPv4)
package main
import (
"fmt"
"net"
"reflect"
"syscall"
"unsafe"
)
@Oppodelldog
Oppodelldog / main.go
Last active April 23, 2022 08:00
ssh-connect
package main
import (
"bytes"
"encoding/hex"
"errors"
"fmt"
"golang.org/x/crypto/ssh"
"io"
"io/ioutil"