From 45c799f71e6f0db1de27bdd601c0d441f0012468 Mon Sep 17 00:00:00 2001 From: WBoerenkamps Date: Wed, 18 Dec 2024 14:43:41 +0100 Subject: camera space working --- src/crepe/api/UIObject.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/crepe/api') diff --git a/src/crepe/api/UIObject.h b/src/crepe/api/UIObject.h index f7f4fba..f1318ab 100644 --- a/src/crepe/api/UIObject.h +++ b/src/crepe/api/UIObject.h @@ -20,6 +20,8 @@ public: vec2 dimensions; //! Position offset relative to this GameObjects Transform vec2 offset; + //! variable indicating if transform is relative to camera(false) or world(true) + bool world_space = false; }; } // namespace crepe -- cgit v1.2.3