summaryrefslogtreecommitdiff
path: root/demos/3d/platformer/enemy.gd
diff options
context:
space:
mode:
Diffstat (limited to 'demos/3d/platformer/enemy.gd')
-rw-r--r--demos/3d/platformer/enemy.gd6
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/3d/platformer/enemy.gd b/demos/3d/platformer/enemy.gd
index 61671c7bd3..55c79e4858 100644
--- a/demos/3d/platformer/enemy.gd
+++ b/demos/3d/platformer/enemy.gd
@@ -1,7 +1,7 @@
extends RigidBody
-# member variables
+# Member variables
const STATE_WALKING = 0
const STATE_DYING = 1
@@ -20,9 +20,9 @@ func _integrate_forces(state):
var lv = state.get_linear_velocity()
var g = state.get_total_gravity()
- lv += g*delta # apply gravity
+ lv += g*delta # Apply gravity
var up = -g.normalized()
-
+
if (dying):
state.set_linear_velocity(lv)
return