mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-07-12 18:43:49 +00:00
feat(*): Split out vehicle object
This commit is contained in:
@@ -7,7 +7,7 @@ func _physics_process(delta):
|
||||
if vehicle and ball:
|
||||
# Adjust the offset based on your scene scale
|
||||
# Increasing Y component to raise the camera higher above the vehicle
|
||||
var offset = Vector3(0, 10, 10) # Adjust Y to change height
|
||||
var offset = Vector3(0, 2, -2) # Adjust Y to change height
|
||||
|
||||
# Position the camera behind and above the vehicle
|
||||
var behind_vehicle = vehicle.global_transform.origin - vehicle.global_transform.basis.z * offset.z
|
||||
|
||||
Reference in New Issue
Block a user