fix: rotation, smooth camera, ship portal collider, obstacle block collider, player rigid body detection, dynamic ground (#54)

This commit is contained in:
2025-04-06 17:24:10 +02:00
committed by GitHub
parent be5ea1e60a
commit 53af80411f
16 changed files with 222 additions and 187 deletions

View File

@ -16,7 +16,7 @@ public class ShipGameMode : IGameMode
bool jumpPressed = Input.GetKey(JumpKey);
if (player.HasStarted && jumpPressed)
if (jumpPressed)
{
Jump(player);
@ -49,7 +49,9 @@ public class ShipGameMode : IGameMode
{
float angle = player.Transform.rotation.eulerAngles.z;
if (angle > 180f)
{
angle -= 360f;
}
return angle;
}