rename camera process function (will be called from level state)
This commit is contained in:
parent
4fdfdc3fdb
commit
d022336dff
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ func _ready() -> void:
|
||||||
assert(level != null, "The LevelCamera type must be used only in the level scene. It needs the owner to be a Level node.")
|
assert(level != null, "The LevelCamera type must be used only in the level scene. It needs the owner to be a Level node.")
|
||||||
|
|
||||||
|
|
||||||
func _physics_process(delta: float) -> void:
|
func follow_gameplay(delta: float) -> void:
|
||||||
var total_weight: float = ball_weight + player_weight * 2.0
|
var total_weight: float = ball_weight + player_weight * 2.0
|
||||||
target_pos = (
|
target_pos = (
|
||||||
level.ball.global_position * ball_weight +
|
level.ball.global_position * ball_weight +
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue