Skip to content

Commit ae79012

Browse files
committed
Update to "Modify cmake files and add comments in the code"
DanielChappuis/reactphysics3d@7432a871496e185b 793351a7c251b45b7bf68424
1 parent 06c8e93 commit ae79012

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/java/org/spout/physics/body/RigidBody.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ public void applyForceToCenter(Vector3 force) {
340340
}
341341

342342
/**
343-
* Applies an external force to the body at a given point (in world-coordinates). If the point is not at the center of gravity of the body, it will also generate some torque and therefore, change
343+
* Applies an external force to the body at a given point (in world-space coordinates). If the point is not at the center of gravity of the body, it will also generate some torque and therefore, change
344344
* the angular velocity of the body. If the body is sleeping, calling this method will wake it up. Note that the force will be added to the sum of the applied forces and that this sum will be
345345
* reset to zero at the end of each call of the {@link org.spout.physics.engine.DynamicsWorld#update()} method.
346346
*

src/main/java/org/spout/physics/engine/Material.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public class Material {
3636
private float mBounciness;
3737

3838
/**
39-
* Constructs a new rigid body material using {@link ReactDefaults#DEFAULT_BOUNCINESS} as the default bounciness and {@link ReactDefaults#DEFAULT_FRICTION_COEFFICIENT} as the default
40-
* friction coefficient.
39+
* Constructs a new rigid body material using {@link ReactDefaults#DEFAULT_BOUNCINESS} as the default bounciness and {@link ReactDefaults#DEFAULT_FRICTION_COEFFICIENT} as the default friction
40+
* coefficient.
4141
*/
4242
public Material() {
4343
mBounciness = ReactDefaults.DEFAULT_BOUNCINESS;
@@ -75,7 +75,7 @@ public float getBounciness() {
7575
}
7676

7777
/**
78-
* Sets the bounciness.
78+
* Sets the bounciness. The bounciness should be a value between 0 and 1. The value 1 is used for a very bouncy body and zero is used for a body that is not bouncy at all.
7979
*
8080
* @param bounciness The bounciness
8181
*/
@@ -96,7 +96,7 @@ public float getFrictionCoefficient() {
9696
}
9797

9898
/**
99-
* Sets the friction coefficient.
99+
* Sets the friction coefficient. The friction coefficient has to be a positive value. The value zero is used for no friction at all.
100100
*
101101
* @param frictionCoefficient The coefficient to set
102102
*/

0 commit comments

Comments
 (0)