From a0967ebe815cd229b69fb9578f2288b95b2ddb28 Mon Sep 17 00:00:00 2001 From: Anson Bridges Date: Sun, 4 Sep 2022 14:57:56 -0700 Subject: networked machine project. added broken airplane from previous project --- scenes/ballistics/Rocket.gd | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'scenes/ballistics/Rocket.gd') 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: -- cgit v1.2.3