This week I have been working on a Unity custom editor, with the goal of making meshes easier to work with. It made sense to show this editor for the MeshFilter type, since that’s the script unity uses to store the Mesh object on. Anytime the MeshFilter selected in the […]
Solution #1 Unity Mesh Walls
The solution I have chosen is as follows. Use bezier curve that has 2 control points, these are each end of the line. Then set the rotation based on the tangent at the midpoint. Code shown below.
Problem #1 Unity Mesh Walls
This is a problem I have encountered while working on my personal side project, a simulation game. Unity mesh allows developers to dynamically create meshes at runtime. Meshes take an array of Vector3s and an array of Integers to create the mesh. Vector3 is a data type that stores the […]
Polygon Generation in Unity
Dynamic generation of polygonal 2d meshes is a useful stepping stone to more dynamic shapes. Unity Mesh object can be broken down into two major components, an array of Vector3s and an array of integers. The simplest polygons have equal angles and side lengths, this is an easy calculation to […]
Tool Spotlight: https://app.quicktype.io
Today I had to make Swift structs for the datatypes that are returned from an API. This is usually a rather time consuming process, especially for large data sources. I found this really simple yet helpful tool that takes json objects and converts it to usable structures that you can […]
Expect Beta APIs to change.
When you are writing software again API’s that are marked as beta, expect that things will change. This is true if it’s Apple’s seasonal beta cycle, AutoDesk APIs or any other large companies public/private API Betas.
Sometimes things break
If you randomly start to see 500+ errors on your sites, changes are there’s a bug you didn’t know about. Today I discovered one. One of my projects was returning a 502 error, I reviewed the logs. The logs basically told me that my database find was using too much […]
Ignore the outcome of Async Function in JavaScript
If you have an async function in Javascript that you just want to call but don’t care about the result. You can: func_name().then(). The then part of handling an async function normally takes a function to handle when the async function completes, however you can exclude that function if you […]
Sometimes you’ll have to change your application due to how people use it.
Initial brainstorm phase can only get you so far, the real test of your project is letting general people access it without you looking over their shoulder. Sometimes you will find that your assumptions are wrong, or that you need to add extra fields to the form. Say for when […]
The importance health habits.
Building and maintaining good and health habits as a developer. The more good habits you have less likely you will become burnt out. If you become burnt out it’s extremely difficult and almost impossible to recover from. Some tips of health habits to adopt for yourself: Take a walk outside […]