diff --git a/.lapce/run.toml b/.lapce/run.toml deleted file mode 100644 index 6133a35..0000000 --- a/.lapce/run.toml +++ /dev/null @@ -1,29 +0,0 @@ -# The run config is used for both run mode and debug mode - -[[configs]] -# the name of this task -name = "[Dev] Build and run" - -# the type of the debugger. If not set, it can't be debugged but can still be run -# type = "lldb" - -# the program to run -program = "nix-shell" - -# the program arguments, e.g. args = ["arg1", "arg2"], optional -args = ["--run"] - -# current working directory, optional -# cwd = "${workspace}" - -# enviroment variables, optional -# [configs.env] -# VAR1 = "VAL1" -# VAR2 = "VAL2" - -# task to run before the run/debug session is started, optional -# [configs.prelaunch] -# program = "cargo" -# args = [ -# "build", -# ] diff --git a/.vscode/launch.json b/.vscode/launch.json index 1325cc7..d26a71a 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -17,6 +17,12 @@ "request": "launch", "type": "node-terminal" }, + { + "command": "nix-shell --run 'cargo check'", + "name": "Check for errors", + "request": "launch", + "type": "node-terminal" + }, { "type": "lldb", "request": "launch", diff --git a/.vscode/settings.json b/.vscode/settings.json index 89a5e75..0db37b6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,5 +5,9 @@ "Substep", "xpbd" ], +<<<<<<< HEAD "rust-analyzer.checkOnSave": false +======= + "rust-analyzer.checkOnSave": false, +>>>>>>> branch 'dev-kinematic' of ssh://git@129.151.217.187:23/MikolajG/ttt-ce.git } \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 0b4a6a1..7369c02 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,6 +31,11 @@ lto = true codegen-units = 1 strip = true + +[build] +rustflags = ["-Z", "threads=7"] + + [features] dev = [ "bevy/dynamic_linking", diff --git a/src/player_utils/character_controller.rs b/src/player_utils/character_controller.rs index 02dbd0a..babd514 100644 --- a/src/player_utils/character_controller.rs +++ b/src/player_utils/character_controller.rs @@ -175,6 +175,7 @@ fn new_fall_velocity(initial_velocity: LinearVelocity, gravity: Vec3, delta_time return result; } +<<<<<<< HEAD // fn move_character( // time: Res