ActiveEdgeMode.h 659 B

1234567891011121314151617
  1. // Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
  2. // SPDX-FileCopyrightText: 2021 Jorrit Rouwe
  3. // SPDX-License-Identifier: MIT
  4. #pragma once
  5. JPH_NAMESPACE_BEGIN
  6. /// How to treat active/inactive edges.
  7. /// An active edge is an edge that either has no neighbouring edge or if the angle between the two connecting faces is too large, see: ActiveEdges
  8. enum class EActiveEdgeMode : uint8
  9. {
  10. CollideOnlyWithActive, ///< Do not collide with inactive edges. For physics simulation, this gives less ghost collisions.
  11. CollideWithAll, ///< Collide with all edges. Use this when you're interested in all collisions.
  12. };
  13. JPH_NAMESPACE_END