Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
846 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #ifndef SIMPLIFY_H
  14. #define SIMPLIFY_H
  15. #pragma once
  16. struct simplifyparams_t
  17. {
  18. float tolerance;
  19. bool addAABBToSimplifiedHull;
  20. bool forceSingleConvex;
  21. bool mergeConvexElements;
  22. float mergeConvexTolerance;
  23. void Defaults()
  24. {
  25. tolerance = 1.0f;
  26. addAABBToSimplifiedHull = false;
  27. forceSingleConvex = false;
  28. mergeConvexElements = false;
  29. mergeConvexTolerance = 0.f;
  30. }
  31. };
  32. extern CPhysCollide *SimplifyCollide( CPhysCollide *pCollideIn, int index, const simplifyparams_t &params );
  33. #endif // SIMPLIFY_H