Input.is_action_pressed doesn't work!

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Alessio Sicuro

I’m learning godot with this tutorial: https://youtu.be/WpzI2ytz5MA but my ball doesn’t move and I don’t understand why. Can you help me??? This is my script and it is the same of the tutorial:

extends KinematicBody

var velocity = Vector3(0,0,0)
const SPEED = 6

func _ready():
pass

func _phisics_process(_delta):

if Input.is_action_pressed("ui_left") and Input.is_action_pressed("ui_right"):
	velocity.x = 0
elif Input.is_action_pressed("ui_right"):
	velocity.x = SPEED
elif Input.is_action_pressed("ui_left"):
	velocity.x = -SPEED
else:
	velocity.x = lerp(velocity.x,0,0.1)

if Input.is_action_pressed("ui_up") and Input.is_action_pressed("ui_down"):
	velocity.z = 0
elif Input.is_action_pressed("ui_up"):
	velocity.z = -SPEED
elif Input.is_action_pressed("ui_down"):
	velocity.z = SPEED
else:
	velocity.z = lerp(velocity.z,0,0.1)
move_and_slide(velocity)
:bust_in_silhouette: Reply From: kidscancode

You’ve spelled “physics” wrong in _physics_process().

thankssssssssss

Alessio Sicuro | 2020-11-30 07:11