This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class CarTorque : MonoBehaviour | |
| { | |
| //// Inspector | |
| [Header("Geometry")] | |
| public float wheelbase = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bl_info = { | |
| "name": "Hof Vehicle Export", | |
| "category": "Object", | |
| "blender": (2, 80, 0) | |
| } | |
| import bpy | |
| import os | |
| from bpy.props import IntProperty | |
| from bpy.props import StringProperty |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist> | |
| <array> | |
| <dict> | |
| <key>AudioList</key> | |
| <array> | |
| <dict> | |
| <key>AudioBitrate</key> | |
| <string>128</string> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public static class ObjectPreviewer | |
| { | |
| struct Node | |
| { | |
| public Matrix4x4 transform; | |
| public Mesh mesh; | |
| public Material[] mats; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class LabelDrawer : MonoBehaviour | |
| { | |
| struct Label3D | |
| { | |
| public readonly string text; | |
| public readonly Vector3 position; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| public static class GizmoUtils | |
| { | |
| public static void DrawCircle(Vector3 pos, Vector3 forward, float radius) | |
| { | |
| #if UNITY_EDITOR | |
| UnityEditor.Handles.color = Gizmos.color; | |
| UnityEditor.Handles.CircleHandleCap( | |
| -1, pos, Quaternion.LookRotation(forward), radius, EventType.Repaint); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// Add this script to the parent of colliders you wish to sync to the root rigidbody | |
| using KinematicCharacterController; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class BuildKCCPlatform : MonoBehaviour | |
| { | |
| public Transform source; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # A script for single [double] click uploading to itch using butler | |
| # by Nothke | |
| # | |
| # Requirements: | |
| # - Installed butler: https://itch.io/docs/butler/ | |
| # - butler added to PATH | |
| # | |
| # How to use: | |
| # 1. Put this script in your project folder, | |
| # 2. Edit the script by adding project names and ignores below |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Thanks to https://twitter.com/jon_barron/status/1318946131078909952 | |
| // | |
| using UnityEngine; | |
| public static class CurveUtils | |
| { | |
| // From pico8 example by @otikik | |
| public static float BiasGain(float x, float s, float t) | |
| { |