Skip to content

Commit a893a58

Browse files
authored
Update/fix restitution param desc in physics addons (#32341)
1 parent e48e7eb commit a893a58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/jsm/physics/JoltPhysics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ async function JoltPhysics() {
305305
* @name JoltPhysics#addMesh
306306
* @param {Mesh} mesh The mesh to add.
307307
* @param {number} [mass=0] The mass in kg of the mesh.
308-
* @param {number} [restitution=0] The restitution/friction of the mesh.
308+
* @param {number} [restitution=0] The restitution of the mesh, usually from 0 to 1. Represents how "bouncy" objects are when they collide with each other.
309309
*/
310310
addMesh: addMesh,
311311

examples/jsm/physics/RapierPhysics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ async function RapierPhysics() {
372372
* @name RapierPhysics#addMesh
373373
* @param {Mesh} mesh The mesh to add.
374374
* @param {number} [mass=0] The mass in kg of the mesh.
375-
* @param {number} [restitution=0] The restitution/friction of the mesh.
375+
* @param {number} [restitution=0] The restitution of the mesh, usually from 0 to 1. Represents how "bouncy" objects are when they collide with each other.
376376
*/
377377
addMesh: addMesh,
378378

0 commit comments

Comments
 (0)