Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions Obscura/scripts/camera_controllers/camera_controller_base.gd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extends Camera3D

func _ready() -> void:
current = false
position += Vector3(0.0, dist_above_target, 0.0)
position = target.position + Vector3(0.0, dist_above_target, 0.0)


func _process(delta: float) -> void:
Expand All @@ -38,9 +38,6 @@ func _process(delta: float) -> void:
#if abs(_camera_tilt_rad) < 0.01:
#_camera_tilt_rad = 0.0
#rotation.z = _camera_tilt_rad

position.y = target.position.y + dist_above_target



@abstract func _draw_logic() -> void
5 changes: 0 additions & 5 deletions Obscura/scripts/camera_controllers/push_box.gd
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ extends CameraControllerBase
@export var box_height:float = 10.0


func _ready() -> void:
super()
position = target.position


func _process(delta: float) -> void:
if !current:
return
Expand Down