Skip to content

Instantly share code, notes, and snippets.

View Drenerdo's full-sized avatar

Andre Smith Drenerdo

View GitHub Profile
using UnityEngine;
using System;
using System.Collections;
using Mathx;
namespace Mathx
{
public enum TrigType { Sin, Cos, Tan }
public static class Trig3
using UnityEngine;
using System.Collections;
public class HingeJointTarget : MonoBehaviour
{
public HingeJoint hj;
public Transform target;
[Tooltip("Only use one of these values at a time. Toggle invert if the rotation is backwards.")]
public bool x, y, z, invert;
@Drenerdo
Drenerdo / bodycollision.cs
Created January 23, 2018 07:45
BodyCollision Script
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BodyCollision : MonoBehaviour
{
public StairDismount stairDismount;
void OnCollisionEnter(Collision col)
{
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class WeaponThrow : MonoBehaviour {
public Rigidbody rigidbody;
void Update () {
if (Input.GetKeyDown (KeyCode.Space)) {
using UnityEngine;
using System.Collections;
[RequireComponent(typeof(Collider))]
public class PunchableBodyParts : MonoBehaviour
{
public EnemyController enemy;
void OnTriggerEnter(Collider col)
{
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class WaveSpawner : MonoBehaviour
{
public enum SpawnState { SPAWNING, WAITING, COUNTING };
[System.Serializable]
public class Wave
{
/*jslint node:true,vars:true,bitwise:true,unparam:true */
/*jshint unused:true */
/*
The Local Temperature Node.js sample application distributed within Intel® XDK IoT Edition under the IoT with Node.js Projects project creation option showcases how to read analog data from a Grover Starter Kit Plus – IoT Intel® Edition Temperature Sensor, start a web server and communicate wirelessly using WebSockets.
MRAA - Low Level Skeleton Library for Communication on GNU/Linux platforms
Library in C/C++ to interface with Galileo & other Intel platforms, in a structured and sane API with port nanmes/numbering that match boards & with bindings to javascript & python.
/*
* Copyright (c) 2013 Calvin Rien
*
* Based on the JSON parser by Patrick van Bergen
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html
*
* Simplified it so that it doesn't throw exceptions
* and can be used in Unity iPhone with maximum code stripping.
*
* Permission is hereby granted, free of charge, to any person obtaining
@Drenerdo
Drenerdo / gist:d26fd3f8fa5c47e021ca7c5fb69038f3
Created September 20, 2016 17:36
PunchableBodyParts.cs
using UnityEngine;
using System.Collections;
[RequireComponent(typeof(Collider))]
public class PunchableBodyParts : MonoBehaviour
{
public EnemyController enemy;
void OnTriggerEnter(Collider col)
{
using UnityEngine;
using System.Collections;
public class throwarea : MonoBehaviour {
// Use this for initialization
void Start () {
}