Added shooter ship
This commit is contained in:
parent
154da5104e
commit
ab3ac4af66
10 changed files with 232 additions and 4 deletions
|
|
@ -43,6 +43,7 @@ func enter(_message):
|
|||
func process(_delta):
|
||||
# checking if need to apply torque
|
||||
current_destination_difference = destination_degrees - ship.hull.global_rotation_degrees
|
||||
|
||||
if abs(current_destination_difference) > destination_difference:
|
||||
ship.engine.rotation_axis = clamp(current_destination_difference / 360 + 0.5 * sign(current_destination_difference), -1.0, 1.0)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue