SoftBodySensorTest.h 732 B

1234567891011121314151617181920212223242526
  1. // Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
  2. // SPDX-FileCopyrightText: 2024 Jorrit Rouwe
  3. // SPDX-License-Identifier: MIT
  4. #pragma once
  5. #include <Tests/Test.h>
  6. #include <Jolt/Physics/SoftBody/SoftBodyContactListener.h>
  7. class SoftBodySensorTest : public Test, public SoftBodyContactListener
  8. {
  9. public:
  10. JPH_DECLARE_RTTI_VIRTUAL(JPH_NO_EXPORT, SoftBodySensorTest)
  11. // Description of the test
  12. virtual const char *GetDescription() const override
  13. {
  14. return "Shows interaction between a soft body and a sensor.";
  15. }
  16. // See: Test
  17. virtual void Initialize() override;
  18. // See: SoftBodyContactListener
  19. virtual void OnSoftBodyContactAdded(const Body &inSoftBody, const SoftBodyManifold &inManifold) override;
  20. };