Skip to content

Instantly share code, notes, and snippets.

Avatar

nbogie

View GitHub Profile
View tree_technique_blender.md

1. make the tree structure shape

  • make single vertex

  • extrude it

2. skin it

  • add skin modifier

adjust thicknesses:

  • in edit mode
View stepped_spice_rack_for_laser_3mm.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nbogie
nbogie / gist:d8b4f207c4f30f2d622c33c1a58010b7
Last active Oct 23, 2019
pygamezero move actor in direction faced
View gist:d8b4f207c4f30f2d622c33c1a58010b7
import math
car = Actor("car_blue")
car.x = 200
car.y = 200
car.speed = 1
accel = 0.5
turning_speed = 1
def update():
# handle player inputs
@nbogie
nbogie / inverse_kinematics.py
Created Oct 18, 2019
inverse kinematics tentacles - bad bad python code
View inverse_kinematics.py
# Inverse Kinematics tenacles with python and pygamezero
# Roughly following Daniel Shiffman's algorithm:
# https://www.youtube.com/watch?v=xXjRlEr7AGk
# pygamezero docs:
# https://pygame-zero.readthedocs.io/en/stable/builtins.html
import math
import random
View tg_pypercard.py
from pypercard import Inputs, CardApp, Card
import random
my_cards = [
Card(
"entrance",
text="You are in the top of a tall tower ,a locked door to the left and a window to the right",
buttons=[
{"label": "Try and pick the lock", "target": "locked door"},
{"label": "Go out of the window", "target": "falling"},
View microbit_arcade_box.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View microbit_holder.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View zippy_joystick_plate.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View buttons.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.