BodyType.h 450 B

12345678910111213141516171819
  1. // Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
  2. // SPDX-FileCopyrightText: 2023 Jorrit Rouwe
  3. // SPDX-License-Identifier: MIT
  4. #pragma once
  5. JPH_NAMESPACE_BEGIN
  6. /// Type of body
  7. enum class EBodyType : uint8
  8. {
  9. RigidBody, ///< Rigid body consisting of a rigid shape
  10. SoftBody, ///< Soft body consisting of a deformable shape
  11. };
  12. /// How many types of bodies there are
  13. static constexpr uint cBodyTypeCount = 2;
  14. JPH_NAMESPACE_END