Rewriting ships: Added shields and weapons holder
This commit is contained in:
parent
e2b9fa6c69
commit
95274d0a5b
17 changed files with 396 additions and 24 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue