/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EnginePlugins/JoltPlugin/Actors/JoltHeightfieldColliderComponent.h
34 строки
1 KB
Jan Krassnigg
Added Jolt heightmap resource, some code cleanup (#1953)
03 июн 2026, 08:10
Не верифицирован
03 июн 2026, 08:10
259ea00
Код
Авторство
О чём код?
#pragma once #include <Core/World/Component.h> #include <Core/WorldSerializer/WorldReader.h> #include <Core/WorldSerializer/WorldWriter.h> #include <JoltPlugin/JoltPluginDLL.h> #include <JoltPlugin/Resources/JoltHeightfieldResource.h> using ezJoltHeightfieldColliderComponentManager = ezComponentManager<class ezJoltHeightfieldColliderComponent, ezBlockStorageType::FreeList>; /// Manages a Jolt static body with a heightfield shape. class EZ_JOLTPLUGIN_DLL ezJoltHeightfieldColliderComponent : public ezComponent { EZ_DECLARE_COMPONENT_TYPE(ezJoltHeightfieldColliderComponent, ezComponent, ezJoltHeightfieldColliderComponentManager); public: virtual void SerializeComponent(ezWorldWriter& inout_stream) const override; virtual void DeserializeComponent(ezWorldReader& inout_stream) override; protected: virtual void OnSimulationStarted() override; virtual void OnDeactivated() override; public: ezJoltHeightfieldColliderComponent(); ~ezJoltHeightfieldColliderComponent(); ezJoltHeightfieldResourceHandle m_hHeightfield; //< [ property ] private: ezUInt32 m_uiJoltBodyID = ezInvalidIndex; ezUInt32 m_uiUserDataIndex = ezInvalidIndex; ezUInt32 m_uiObjectFilterID = ezInvalidIndex; };