A Third-Person-Shooter Godot game.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

14 lines
374 B

extends RigidBody
var initpos : Transform
# Called when the node enters the scene tree for the first time.
func _ready():
initpos = self.global_transform
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _physics_process(delta):
if self.global_transform.origin.y < -10:
self.global_transform = initpos
linear_velocity = Vector3.ZERO