Skip to content

Instantly share code, notes, and snippets.

@PaperPrototype
Last active February 14, 2021 16:17
Show Gist options
  • Save PaperPrototype/6ecf4a40738d813426b4cd9f4054c26a to your computer and use it in GitHub Desktop.
Save PaperPrototype/6ecf4a40738d813426b4cd9f4054c26a to your computer and use it in GitHub Desktop.
player struct in C
struct Player {
float pos[3]; // array of 3 floats (aka vector3)
float rot[4]; // array of 4 floats (aka vector4, aka quaternion)
struct Mesh mesh; // if you are in third person u should see your player
struct BoxCollider collider; // collision
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment