/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EnginePlugins/JoltPlugin/Constraints/JoltPointConstraintComponent.h
36 строк
1 KB
Jan Krassnigg
Added docs comments to most components (#1133)
29 дек 2023, 14:05
Не верифицирован
29 дек 2023, 14:05
78bc6ae
Код
Авторство
О чём код?
#pragma once #include <JoltPlugin/Constraints/JoltConstraintComponent.h> using ezJoltPointConstraintComponentManager = ezComponentManager<class ezJoltPointConstraintComponent, ezBlockStorageType::Compact>; /// \brief Implements a physics constraint that allows rotation around one point. /// /// The joined actors can freely rotate around the constraint position. class EZ_JOLTPLUGIN_DLL ezJoltPointConstraintComponent : public ezJoltConstraintComponent { EZ_DECLARE_COMPONENT_TYPE(ezJoltPointConstraintComponent, ezJoltConstraintComponent, ezJoltPointConstraintComponentManager); ////////////////////////////////////////////////////////////////////////// // ezComponent public: virtual void SerializeComponent(ezWorldWriter& inout_stream) const override; virtual void DeserializeComponent(ezWorldReader& inout_stream) override; ////////////////////////////////////////////////////////////////////////// // ezJoltConstraintComponent protected: virtual void ApplySettings() override; virtual void CreateContstraintType(JPH::Body* pBody0, JPH::Body* pBody1) override; virtual bool ExceededBreakingPoint() override; ////////////////////////////////////////////////////////////////////////// // ezJoltPointConstraintComponent public: ezJoltPointConstraintComponent(); ~ezJoltPointConstraintComponent(); };