/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EnginePlugins/JoltPlugin/Constraints/JoltConeConstraintComponent.h
41 строка
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 ezJoltConeConstraintComponentManager = ezComponentManager<class ezJoltConeConstraintComponent, ezBlockStorageType::Compact>; /// \brief Implements a conical physics constraint. /// /// The child actor can swing in a cone with a given angle around the anchor point on the parent actor. class EZ_JOLTPLUGIN_DLL ezJoltConeConstraintComponent : public ezJoltConstraintComponent { EZ_DECLARE_COMPONENT_TYPE(ezJoltConeConstraintComponent, ezJoltConstraintComponent, ezJoltConeConstraintComponentManager); ////////////////////////////////////////////////////////////////////////// // ezComponent public: virtual void SerializeComponent(ezWorldWriter& inout_stream) const override; virtual void DeserializeComponent(ezWorldReader& inout_stream) override; ////////////////////////////////////////////////////////////////////////// // ezJoltConstraintComponent protected: virtual void CreateContstraintType(JPH::Body* pBody0, JPH::Body* pBody1) override; virtual void ApplySettings() final override; virtual bool ExceededBreakingPoint() final override; ////////////////////////////////////////////////////////////////////////// // ezJoltConeConstraintComponent public: ezJoltConeConstraintComponent(); ~ezJoltConeConstraintComponent(); void SetConeAngle(ezAngle f); // [ property ] ezAngle GetConeAngle() const { return m_ConeAngle; } // [ property ] protected: ezAngle m_ConeAngle; };