- Edited
cybereality it slows down the velocity
You do not need to worry about anything else, as it is not the problem. It slows down on the y-axis when i move on the x axis
EDIT:
Also, I use this code to make the cannon move forward forever:
func _button_pressed():
self.visible = false
self.get_parent().get_node("Cannon").gravity_scale = 0
self.get_parent().get_node("Cannon").linear_damp = 0
self.get_parent().get_node("Cannon").friction = 0
self.get_parent().get_node("Cannon").linear_velocity = Vector3(0,0,-10)
self.get_parent().get_node("Cannon").axis_lock_angular_x = true
self.get_parent().get_node("Cannon").axis_lock_angular_y = true
self.get_parent().get_node("Cannon").axis_lock_angular_z = true