Updated Godot to version de917008f
parent
a8c34bf896
commit
36381c25dc
|
@ -323,17 +323,17 @@ func _physics_process(delta):
|
|||
direction = Vector3.ZERO
|
||||
|
||||
if is_on_floor() and ground_check.is_colliding() and not jetpack_active:
|
||||
snap = -get_floor_normal()
|
||||
#snap = -get_floor_normal()
|
||||
medium = "ground"
|
||||
gravity_vec = Vector3.ZERO
|
||||
else:
|
||||
snap = Vector3.DOWN
|
||||
#snap = Vector3.DOWN
|
||||
medium = "air"
|
||||
gravity_vec += Vector3.DOWN * gravity * delta
|
||||
|
||||
if input_active:
|
||||
if Input.is_action_just_pressed("move_jump") and is_on_floor():
|
||||
snap = Vector3.ZERO
|
||||
#snap = Vector3.ZERO
|
||||
gravity_vec = Vector3.UP * jump
|
||||
$JumpSFX.rpc(&"play")
|
||||
|
||||
|
|
BIN
Godot/godot-linux-nightly-x86_64.zip (Stored with Git LFS)
BIN
Godot/godot-linux-nightly-x86_64.zip (Stored with Git LFS)
Binary file not shown.
BIN
Godot/godot-templates-android-html5-linux-windows-nightly.tpz (Stored with Git LFS)
BIN
Godot/godot-templates-android-html5-linux-windows-nightly.tpz (Stored with Git LFS)
Binary file not shown.
BIN
Godot/godot-windows-nightly-x86_64.zip (Stored with Git LFS)
BIN
Godot/godot-windows-nightly-x86_64.zip (Stored with Git LFS)
Binary file not shown.
Reference in New Issue