Last active
February 14, 2021 16:23
-
-
Save PaperPrototype/e7ca521f931b8c3dc39631529f2b0b08 to your computer and use it in GitHub Desktop.
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
// the generic objects struct for static objects in the world (obstactles not moving with physics) | |
struct Object { | |
struct Transform transform; | |
struct Mesh mesh; | |
struct MeshCollider collider; | |
} | |
struct Transform { | |
// float pos[3] or struct with { x, y, z ... } both work | |
struct Vector3 pos; | |
struct Vector4 rot; | |
struct Vector3 scale; | |
} | |
// vectors | |
struct Vector3 { | |
float x, y, z; | |
} | |
struct Vector4 { | |
float x, y, z, w; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment