WhiteBoxColliderConfiguration.h 975 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/RTTI/RTTI.h>
  10. #include <AzCore/Memory/Memory.h>
  11. namespace AZ
  12. {
  13. class ReflectContext;
  14. } // namespace AZ
  15. namespace WhiteBox
  16. {
  17. // How the white box rigid body should be represented in physics.
  18. enum class WhiteBoxBodyType
  19. {
  20. Static,
  21. Kinematic
  22. };
  23. //! Configuration information to use when setting up a WhiteBoxCollider.
  24. struct WhiteBoxColliderConfiguration
  25. {
  26. AZ_CLASS_ALLOCATOR_DECL
  27. AZ_TYPE_INFO(WhiteBoxColliderConfiguration, "{36DCCE5D-2E26-4FEE-9A17-6B1D401CE46F}")
  28. static void Reflect(AZ::ReflectContext* context);
  29. WhiteBoxBodyType m_bodyType = WhiteBoxBodyType::Static; //!< Default the body type to Static.
  30. };
  31. } // namespace WhiteBox