This commit is contained in:
ntr committed 2023-07-26 23:52:26 +10:00
1 parent 45fc3026b4
commit 7dc0a04856
15 files changed
+339 -125

No files matched your search

+5
View File
@@ -65,6 +65,11 @@ public class ShipControls : MonoBehaviour, SpaceRaceInput.IShipActions {
decelerateAction = input.FindAction("decelerate");
}
void OnDestroy() {
input.ship.RemoveCallbacks(this);
}
void Update() {
// to minimise input lag we poll for the thrust vector every frame and set it
thrust = getThrust();