No more KSP

This commit is contained in:
MarcEricMartel 2023-06-10 17:00:08 -04:00
parent 100bac9f97
commit b982ffb7c4
2 changed files with 4 additions and 4 deletions

View File

@ -16,4 +16,4 @@ data = {
metadata/_editor_floor_ = Vector3(0, 0, 0)
[node name="player" parent="." instance=ExtResource("2_ojnju")]
transform = Transform3D(1, 0, 0, 0, 0.899123, 0.437696, 0, -0.437696, 0.899123, -0.0803165, 7.03628, 6.2505)
transform = Transform3D(1, 0, 0, 0, 0.388867, 0.921294, 0, -0.921294, 0.388867, -2.76897, 18.3017, 8.82022)

View File

@ -33,12 +33,12 @@ public partial class player : Camera3D
this.Translate(new Vector3(0, 0, (float)delta*10));
this.Rotation += rot;
if (_wIn)
if (_wIn && this.Position.Z > 3)
this.Translate(new Vector3(0, 0, (float)-delta*10));
if (_wOut)
if (_wOut && this.Position.Z < 12)
this.Translate(new Vector3(0, 0, (float)delta*10));
_con.Set("text", this.Rotation);
_con.Set("text", this.Position);
}
public override void _Input(InputEvent @event)