This file contains 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
// ONE DIMENSIONAL CONTACT TEST | |
// The cordinate system in the y-direction is 0 for the surface, positive above and negative below. | |
// Distances are measured in pixels. Time is measured in frames. So velocity = pixles / frame | |
// Surface line is white | |
// positive slop line is green | |
// Negative slop line is red | |
// Velocity threshold contact works as follows: |
This file contains 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
// Distributed as Public Domain | |
#include <ctime> | |
#include <string> | |
#include <iostream> | |
typedef unsigned long ulong; | |
using namespace std; | |
struct Experiment { |
This file contains 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
import bpy | |
vertexAttributes = [("POSITION", "Position", "" , "MAN_TRANS", 0 ), | |
("NORMAL", "Normal", "", "MANIPUL", 1), | |
("TANGENT", "Tangent", "", "OUTLINER_OB_EMPTY", 2), | |
("BITANGENT", "Bitangent", "", "EMPTY_DATA", 3), | |
("TEXTURE", "Texture Coordinates", "", "GROUP_UVS", 4), | |
("GROUPS", "Vertex Groups", "", "GROUP_VERTEX", 5), | |
("COLOR", "Vertex Color", "", "GROUP_VCOL", 6)] | |
This file contains 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
#define WIN32_LEAN_AND_MEAN | |
#include <windows.h> | |
#include <gl/GL.h> | |
const bool IS_EVENT_DRIVEN = true; // TRUE: Wait for update event. FALSE: 30 fps | |
bool isRunning = true; | |
bool needsRefresh = true; | |
// Window Callback | |
LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); |
This file contains 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
#include "gc_ptr.h" | |
#include <new> | |
#include <list> | |
#include <stack> | |
// A NULL owner pointer signifies that a gc_poiner is owned by the stack | |
// (or a manually managed heap block) | |
const unsigned int SOLID_REFERENCE = 0; |