From 0a8654a125fad2961039e614fd10f1f683c0001f Mon Sep 17 00:00:00 2001 From: Andy Date: Fri, 28 Oct 2016 08:30:14 -0400 Subject: Text is fixed, and objects can be placed on the ground --- include/components.hpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/components.hpp b/include/components.hpp index 1195337..507aa33 100644 --- a/include/components.hpp +++ b/include/components.hpp @@ -61,6 +61,16 @@ struct Physics { float g; /**< The gravity constant, how fast the object falls */ }; +/** + * @struct Grounded + * @brief Places an entity without physics on the ground. + * This is used so we don't have to update the physics of a non-moving object every loop. + */ +struct Grounded { + //TODO possibly make a way to change this + bool grounded = false; +}; + /** * @struct Health * @brief Gives and entity health and stuff. @@ -200,7 +210,6 @@ struct Animate { }; //TODO - struct Input { }; -- cgit v1.2.3