Rewriting ships: Added shields and weapons holder

This commit is contained in:
2ndbeam 2024-04-28 20:53:44 +03:00
commit 95274d0a5b
17 changed files with 396 additions and 24 deletions

View file

@ -20,7 +20,7 @@ var acceleration_axis: float = 0.0
## Rotation control variable
var rotation_axis: float = 0.0
func _physics_process(_delta):
func _physics_process(_delta) -> void:
# apply movement and rotation
ship.hull.apply_central_force(Vector2.from_angle(ship.hull.rotation) * acceleration_speed * acceleration_axis)
ship.hull.apply_torque(rotation_speed * rotation_axis)