MutableCompoundShapeTest.h 683 B

1234567891011121314151617181920212223242526272829
  1. // SPDX-FileCopyrightText: 2021 Jorrit Rouwe
  2. // SPDX-License-Identifier: MIT
  3. #pragma once
  4. #include <Tests/Test.h>
  5. class MutableCompoundShapeTest : public Test
  6. {
  7. public:
  8. JPH_DECLARE_RTTI_VIRTUAL(MutableCompoundShapeTest)
  9. // See: Test
  10. virtual void Initialize() override;
  11. // Update the test, called before the physics update
  12. virtual void PrePhysicsUpdate(const PreUpdateParams &inParams) override;
  13. // Saving / restoring state for replay
  14. virtual void SaveState(StateRecorder &inStream) const override;
  15. virtual void RestoreState(StateRecorder &inStream) override;
  16. private:
  17. BodyIDVector mBodyIDs;
  18. RefConst<Shape> mSubCompound;
  19. int mFrameNumber = 0;
  20. };