PhysXCookingParams.h 841 B

12345678910111213141516171819202122232425
  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 <PxPhysicsAPI.h>
  10. namespace PhysX
  11. {
  12. namespace PxCooking
  13. {
  14. //! Return PxCookingParams better suited for use at run-time, these parameters will improve cooking time.
  15. //! Reference: https://docs.nvidia.com/gameworks/content/gameworkslibrary/physx/guide/Manual/Geometry.html#triangle-meshes
  16. physx::PxCookingParams GetRealTimeCookingParams();
  17. //! Return PxCookingParams better suited for use at edit-time, these parameters will
  18. //! increase cooking time but improve accuracy/precision.
  19. physx::PxCookingParams GetEditTimeCookingParams();
  20. }
  21. }