Skip to content

Instantly share code, notes, and snippets.

View BenVlodgi's full-sized avatar
💭
Working on Supraworld

Benjamin Thomas Blodgett BenVlodgi

💭
Working on Supraworld
View GitHub Profile
@BenVlodgi
BenVlodgi / Game=Here.cpp
Last active April 23, 2024 15:34
My second video game from 2008
// Note from Author 2024-04-23
// I wrote this program during my programming class in 2008. It was an online class at my highschool.
// I was enthusiastic about trying to make my own game. This was my passion project I was doing on my own.
// I did submit it and earned extra credit. At this time I haddn't learned about arrays or pointers.
// This is a console program which prints out a map. The player can then sumbit an action by typing the
// input and pressing enter. You can also enter multiple sequenced commands and press enter as the characters
// proccessed sequentially.
// There is so much charm in seeing how I foud solutions and then repeated them. For instance: I have integers
// which represent if the player is at that location. I update their state, when I could have instead just
// checked the position int in the if-statements.
@BenVlodgi
BenVlodgi / Accessing Static Mesh Collision Primitive Data.md
Created January 4, 2024 22:20
Unreal Engine: Accessing Static Mesh Collision Primitive Data

Unreal Engine: Accessing Static Mesh Collision Primitive Data

Useful if you want to extract the authored collision information to use in other system. Perhaps ones that rely on SDFs; Like a 3d fluid simulation.

#include "PhysicsEngine/BodySetup.h"

void GetMeshCollision(const UStaticMeshComponent* Component)
{
@BenVlodgi
BenVlodgi / GameplayTags in Plugin example.md
Last active January 4, 2024 21:00
Unreal Engine Plugin Module Startup to support GameplayTags

Add this code to your plugin module's startup if you want GameplayTag .ini files to be searched for and found in your plugin. This isn't nessessary for Modular GameFeature Plugins.

#include "Interfaces/IPluginManager.h"
#include "GameplayTagsManager.h"

void FSupraCoreModule::StartupModule()