Skip to content

Instantly share code, notes, and snippets.

View Indp-Dustin's full-sized avatar

Indie Developer Partners Indp-Dustin

View GitHub Profile
void DrawLine(Vector3 start, Vector3 dest)
{
}
void UpdateFrame(void)
{
Vector3 Pt1, Pt2;
Pt1.SetPoint(10, 10);
@Indp-Dustin
Indp-Dustin / Matrix.h
Created March 20, 2018 08:50
CK Math Class1
#pragma once
#include "stdafx.h"
struct Matrix2{public: float _11, _12; float _21, _22;
 Matrix2() {}; Matrix2(float m11, float m12, float m21, float m22) {  _11 = m11;  _12 = m12;
  _21 = m21;  _22 = m22; };
 void SetScale(float a, float b) {  SetIdentity();  // Add Code Here  _11 = a;  _22 = b; }
 void SetIdentity() {  _11 = 1.0f;  _12 = 0.0f;
  _21 = 0.0f;  _22 = 1.0f; };
 Matrix2 operator *(const Matrix2 Other) const;};
@Indp-Dustin
Indp-Dustin / SkinnedMeshRenderer.cs
Created December 19, 2016 10:17
Unity Code Rigging
using UnityEngine;
using System.Collections;
public class CustomSkinnedMesh : MonoBehaviour {
public Transform[] bones;
public Material mat;
public AnimationClip clip;
void Awake()