From 58a640e8606c95db2cb4f99b8b58b62eabb1f78e Mon Sep 17 00:00:00 2001 From: Stephen Gold Date: Sat, 29 Jan 2022 08:38:09 -0800 Subject: [PATCH] PhysicsCharacter: add javadoc for the setGravity() method --- .../com/jme3/bullet/objects/PhysicsCharacter.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/jme3-jbullet/src/main/java/com/jme3/bullet/objects/PhysicsCharacter.java b/jme3-jbullet/src/main/java/com/jme3/bullet/objects/PhysicsCharacter.java index 9fcaa9516e..a5a2fda8b2 100644 --- a/jme3-jbullet/src/main/java/com/jme3/bullet/objects/PhysicsCharacter.java +++ b/jme3-jbullet/src/main/java/com/jme3/bullet/objects/PhysicsCharacter.java @@ -150,10 +150,13 @@ public float getJumpSpeed() { return jumpSpeed; } - //does nothing -// public void setMaxJumpHeight(float height) { -// character.setMaxJumpHeight(height); -// } + /** + * Alter the character's gravitational acceleration without altering its + * "up" vector. + * + * @param value the desired downward acceleration (in physics-space units + * per second squared, default=29.4) + */ public void setGravity(float value) { character.setGravity(value); }