todo and veloc fix

This commit is contained in:
ntr committed 2023-08-22 18:09:20 +10:00
1 parent 1c305bb677
commit 56ed2a4e89
2 files changed
+6 -2

No files matched your search

+4
View File
@@ -78,6 +78,10 @@ public class ShipControls : MonoBehaviour {
// this is relative because it's easy to just multiply by the strafe vector // this is relative because it's easy to just multiply by the strafe vector
rigidBody.AddRelativeForce(strafe, forceMode); rigidBody.AddRelativeForce(strafe, forceMode);
// little check to stop the ship bouncing between forward and back when holding decel
if (rigidBody.velocity.magnitude < 0.2)
rigidBody.velocity = Vector3.zero;
// rotating towards the camera's orientation // rotating towards the camera's orientation
// not being done by a force because of strange behaviour // not being done by a force because of strange behaviour
// needs investigation // needs investigation
+2 -2
View File
@@ -1,12 +1,12 @@
# SpaceRace! # SpaceRace!
- controls UI - controls UI
- boost charge coloring chevron things
- shield icon
- output boost indicators - output boost indicators
- controls diagram - controls diagram
- shield regen bug
- git lfs - git lfs
- post times to server - post times to server