Skip to content

Instantly share code, notes, and snippets.

View GermanHoyos's full-sized avatar
😋
Coding!

German Adrian Hoyos GermanHoyos

😋
Coding!
View GitHub Profile
@GermanHoyos
GermanHoyos / MyJoyStick.h
Created August 17, 2025 22:32
Refined for 6dof flight
// Written by German Adrian Hoyos: [email protected]
// porototype virtual joystick for Sunny Lin
#pragma once
#include "MasterHeader.h"
class MyJoyStick
{
public:
@GermanHoyos
GermanHoyos / My6DofObj.h
Last active August 18, 2025 04:30
Refined for Quaternion flight
// Written by German Adrian Hoyos: [email protected]
// "My6DofObj.h" objects with the ability to detect parents or siblings
/***************************************************************************************************************************
** **
** **
** ADRIAN HOYOS **
** OPENGL NOTES **
** + **
** 6DOF **
**
@GermanHoyos
GermanHoyos / My6DofObj.h
Created August 11, 2025 01:39
REFINED VISUALLY FOR GLOBAL VS LOCAL SPACE
// Made by Adrian ... [email protected]
class My6DofObj
{
public:
float myVelocity = 0.0f;
Vector3 myRotationAxis;
Vector3 myTargetPosition;
Vector3 myCurrentPosition;
Vector3 myWorldPosition;
Matrix myCubeSpace = MatrixIdentity();
@GermanHoyos
GermanHoyos / My6DofObj.h
Created August 10, 2025 23:36
Local space / Global space Outlined
class My6DofObj
{
public:
float myVelocity = 0.0f;
Vector3 myRotationAxis;
Vector3 myTargetPosition;
Vector3 myCurrentPosition;
Vector3 myWorldPosition;
Matrix myCubeSpace = MatrixIdentity();
@GermanHoyos
GermanHoyos / My6DofObj.h
Last active August 10, 2025 20:58
Perfect cube with 6 degrees of freedom (mouse and keyboard, xbox, playstation controllers)
// Written by German Adrian Hoyos. [email protected]
// "My6DofObj.h"
#pragma once
#include "MasterHeader.h"
class My6DofObj
{
public:
float myVelocity = 0.0f;
Vector3 myRotationAxis;
@GermanHoyos
GermanHoyos / main.cpp
Created April 5, 2025 16:15
Boid Foundational Class / Perfect Unit Circle - Smooth Movement
// Written by German Adrian Hoyos
// Linkedin: https://www.linkedin.com/in/adrian-i-81a32615b/
// Common c++ headers + custom headers
#include "include/MasterHeader.h"
class Player {
public:
Vector2 xy;
Vector2 attackVector;
float x;
@GermanHoyos
GermanHoyos / main.cpp
Last active April 5, 2025 16:01
Adrians Snake Proj
// Written by German Adrian Hoyos
// Linkedin: https://www.linkedin.com/in/adrian-i-81a32615b/
// Inspired by the artwork of: https://x.com/5tr4n0/status/1885114394331275707
//
// to launch via git vscode bash terminal: "./runme.bat"
//
// +------------+----------------------+------------------+---------------------------------+
// | Data Type | Size (Typical) | Description | Value Range |
// +------------+----------------------+------------------+---------------------------------+
// | bool | 1 byte | True or false | false (0) to true (1) |
@GermanHoyos
GermanHoyos / main.cpp
Last active April 5, 2025 16:02
Core Mode OpenGL Single Triangle
// Written by German Adrian Hoyos
// Linkedin: https://www.linkedin.com/in/adrian-i-81a32615b/
#include "../include/masterheader.h" // Common c++ headers + custom headers
// Declared in "shapes2D.h"
// float triangle2D[] = {
// -0.5f, -0.5f, 0.0f,
// 0.5f, -0.5f, 0.0f,
// 0.0f, 0.5f, 0.0f
// };
// Written by German Adrian Hoyos
// Linkedin: https://www.linkedin.com/in/adrian-i-81a32615b/
#include "../include/MasterHeader.h"
class reflectiveCube
{
public:
Vector3 myPosition; Vector3 mySize;
Vector3 topFaceCenter, topFaceNormal; Vector3 getTopFaceCenter; Vector3 getTopFaceNormal; Vector3 topFaceCenterInWorldSpace; Vector3 topFaceNormalInWorldSpace;
Vector3 botFaceCenter, botFaceNormal; Vector3 getBotFaceCenter; Vector3 getBotFaceNormal; Vector3 botFaceCenterInWorldSpace; Vector3 botFaceNormalInWorldSpace;
// THE SOURCE / WHO WAS, WHO IS, WHO IS COMING: YHWH
// Written by German Adrian Hoyos
// Linkedin: https://www.linkedin.com/in/adrian-i-81a32615b/
/********************
** **
** Experiment to **
** learn OpenGL **
** and 6dof Maths **
** **
********************/