quick tweaks
This commit is contained in:
@@ -15,6 +15,7 @@ var player
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
add_to_group("pickup")
|
||||
add_to_group("spawned")
|
||||
#find player
|
||||
player = level_control.player
|
||||
|
||||
|
||||
@@ -77,8 +77,8 @@ func _process(delta):
|
||||
turret_look_next.look_at(player.global_position,Vector3.UP)
|
||||
turret_look.rotation = lerp(turret_look.rotation,turret_look_next.rotation,delta * turret_look_speed)
|
||||
else:
|
||||
body.rotation.y = lerp(body.rotation.y, body.rotation.y + 10, delta * .5)
|
||||
turret_look.rotation.y = lerp(turret_look.rotation.y,turret_look.rotation.y - 5,delta * 1)
|
||||
body.rotation.y = lerp(body.rotation.y, body.rotation.y + 10, delta * .1)
|
||||
turret_look.rotation.y = lerp(turret_look.rotation.y,turret_look.rotation.y - 10,delta * .5)
|
||||
|
||||
#apply gravity
|
||||
if !is_on_floor():
|
||||
|
||||
Reference in New Issue
Block a user