Skip to content

Commit 8f06fec

Browse files
authored
PhysicsCharacter: add javadoc for the setGravity() method (#1763)
1 parent 2b86611 commit 8f06fec

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

jme3-jbullet/src/main/java/com/jme3/bullet/objects/PhysicsCharacter.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,13 @@ public float getJumpSpeed() {
150150
return jumpSpeed;
151151
}
152152

153-
//does nothing
154-
// public void setMaxJumpHeight(float height) {
155-
// character.setMaxJumpHeight(height);
156-
// }
153+
/**
154+
* Alter the character's gravitational acceleration without altering its
155+
* "up" vector.
156+
*
157+
* @param value the desired downward acceleration (in physics-space units
158+
* per second squared, default=29.4)
159+
*/
157160
public void setGravity(float value) {
158161
character.setGravity(value);
159162
}

0 commit comments

Comments
 (0)