/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Engine/Core/World/GameObjectDesc.h
27 строк
2 KB
Ingrater
Clang-format fixes and update to 18.1.1 (#1234)
10 мар 2024, 15:51
Не верифицирован
10 мар 2024, 15:51
2f16acf
Код
Авторство
О чём код?
#pragma once #include <Core/World/Declarations.h> #include <Foundation/Math/Quat.h> #include <Foundation/Strings/HashedString.h> #include <Foundation/Types/TagSet.h> #include <Foundation/Types/Uuid.h> /// \brief Describes the initial state of a game object. struct EZ_CORE_DLL ezGameObjectDesc { EZ_DECLARE_POD_TYPE(); bool m_bActiveFlag = true; ///< Whether the object should have the 'active flag' set. See ezGameObject::SetActiveFlag(). bool m_bDynamic = false; ///< Whether the object should start out as 'dynamic'. See ezGameObject::MakeDynamic(). ezUInt16 m_uiTeamID = 0; ///< See ezGameObject::GetTeamID(). ezHashedString m_sName; ///< See ezGameObject::SetName(). ezGameObjectHandle m_hParent; ///< An optional parent object to attach this object to as a child. ezVec3 m_LocalPosition = ezVec3::MakeZero(); ///< The local position relative to the parent (or the world) ezQuat m_LocalRotation = ezQuat::MakeIdentity(); ///< The local rotation relative to the parent (or the world) ezVec3 m_LocalScaling = ezVec3(1); ///< The local scaling relative to the parent (or the world) float m_LocalUniformScaling = 1.0f; ///< An additional local uniform scaling relative to the parent (or the world) ezTagSet m_Tags; ///< See ezGameObject::GetTags() ezUInt32 m_uiStableRandomSeed = 0xFFFFFFFF; ///< 0 means the game object gets a random value assigned, 0xFFFFFFFF means that if the object has a parent, the value will be derived deterministically from that one's seed, otherwise it gets a random value, any other value will be used directly };