physicsMaterial.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * Determines how values from the PhysicsMaterial are combined when
  3. * two objects are in contact. When each PhysicsMaterial specifies
  4. * a different combine mode for some property, the combine mode which
  5. * is used will be selected based on their order in this enum - i.e.
  6. * a value later in this list will be preferentially used.
  7. */
  8. export var PhysicsMaterialCombineMode;
  9. (function (PhysicsMaterialCombineMode) {
  10. /**
  11. * The final value will be the geometric mean of the two values:
  12. * sqrt( valueA * valueB )
  13. */
  14. PhysicsMaterialCombineMode[PhysicsMaterialCombineMode["GEOMETRIC_MEAN"] = 0] = "GEOMETRIC_MEAN";
  15. /**
  16. * The final value will be the smaller of the two:
  17. * min( valueA , valueB )
  18. */
  19. PhysicsMaterialCombineMode[PhysicsMaterialCombineMode["MINIMUM"] = 1] = "MINIMUM";
  20. /* The final value will be the larger of the two:
  21. * max( valueA , valueB )
  22. */
  23. PhysicsMaterialCombineMode[PhysicsMaterialCombineMode["MAXIMUM"] = 2] = "MAXIMUM";
  24. /* The final value will be the arithmetic mean of the two values:
  25. * (valueA + valueB) / 2
  26. */
  27. PhysicsMaterialCombineMode[PhysicsMaterialCombineMode["ARITHMETIC_MEAN"] = 3] = "ARITHMETIC_MEAN";
  28. /**
  29. * The final value will be the product of the two values:
  30. * valueA * valueB
  31. */
  32. PhysicsMaterialCombineMode[PhysicsMaterialCombineMode["MULTIPLY"] = 4] = "MULTIPLY";
  33. })(PhysicsMaterialCombineMode || (PhysicsMaterialCombineMode = {}));
  34. //# sourceMappingURL=physicsMaterial.js.map