physics.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* eslint-disable quote-props */
  2. module.exports = {
  3. classes: {
  4. 'cc': {
  5. 'PhysicsMaterial': {
  6. properties: {
  7. 'friction': {
  8. displayName: 'Friction',
  9. tooltip:
  10. 'Friction coefficient. ' +
  11. 'As the value increases, it becomes more difficult to move the object and the speed of movement decreases more quickly. ' +
  12. 'A friction of 0 feels like ice.',
  13. },
  14. 'rollingFriction': {
  15. displayName: 'Rolling Friction',
  16. tooltip: 'Rolling friction coefficient. Note this property is only supported on Bullet backend.',
  17. },
  18. 'spinningFriction': {
  19. displayName: 'Spinning Friction',
  20. tooltip: 'Spinning Friction coefficient. Note this property is only supported on Bullet backend.',
  21. },
  22. 'restitution': {
  23. displayName: 'Restitution',
  24. tooltip:
  25. 'Restitution coefficient. The value is in [0, 1]. ' +
  26. 'Higher the value, less the kinetic energy loose. ' +
  27. 'A restitution of 0 loose all the energy after collision, ' +
  28. 'so it prevents the object from bounciness(if no other forces were applying), ' +
  29. 'feels like sponges. ' +
  30. 'A restitution of 1 does not looses any energy after collision, ' +
  31. 'so it keeps the object bouncing forever(if no other forces were applying), ' +
  32. 'feels like rubber balls.',
  33. },
  34. },
  35. },
  36. },
  37. },
  38. };