physics.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. /* eslint-disable quote-props */
  2. module.exports = {
  3. classes: {
  4. 'cc': {
  5. 'PhysicsMaterial': {
  6. properties: {
  7. 'friction': {
  8. displayName: '摩擦系数',
  9. tooltip:
  10. '摩擦系数。值越大,越难让物体在接触面移动且移动速度也会降低得更快。' +
  11. '摩擦系数为 0 的感觉就像冰。',
  12. },
  13. 'rollingFriction': {
  14. displayName: '滚动摩擦系数',
  15. tooltip: '滚动摩擦系数。注意,此属性仅在 Bullet 后端中支持。',
  16. },
  17. 'spinningFriction': {
  18. displayName: '自旋摩擦系数',
  19. tooltip: '自旋摩擦系数。注意,此属性仅在 Bullet 后端中支持。',
  20. },
  21. 'restitution': {
  22. displayName: '弹性系数',
  23. tooltip:
  24. '弹性系数。取值范围为 [0, 1]。' +
  25. '值越大,碰撞后动能损失越小。' +
  26. '弹性系数为 0 的物体碰撞后损失所有动能,将不会回弹,其感觉就像海绵;' +
  27. '弹性系数为 1 的物体碰撞后不会有动能损失,将无限次回弹,其感觉就像橡胶球。',
  28. },
  29. },
  30. },
  31. },
  32. },
  33. };