summaryrefslogtreecommitdiff
path: root/scenes/ballistics/Rocket.gd
diff options
context:
space:
mode:
Diffstat (limited to 'scenes/ballistics/Rocket.gd')
-rw-r--r--scenes/ballistics/Rocket.gd7
1 files changed, 2 insertions, 5 deletions
diff --git a/scenes/ballistics/Rocket.gd b/scenes/ballistics/Rocket.gd
index 171a49e..46ca058 100644
--- a/scenes/ballistics/Rocket.gd
+++ b/scenes/ballistics/Rocket.gd
@@ -14,18 +14,15 @@ func _ready():
func get_init_info():
return {"linear_velocity" : linear_velocity, "angular_velocity" : angular_velocity, "life" : life, "shooter" : shooter, "shooter_id" : shooter_id}
-remote func update_phys_transform(t, lv, av):
- transform = t
- linear_velocity = lv
- angular_velocity = av
-
func _physics_process(delta):
+ print(global_transform.basis.x)
if life < lifetime:
add_central_force(global_transform.basis.x*strength)
life += delta
else:
rpc("explode")
$RocketTrail.emitting = false
+
remotesync func explode():
if cannot_explode: