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)
{| // 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. |
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)
{