basic tutorial setup
This commit is contained in:
@@ -437,12 +437,14 @@ public partial class PlayerController : CharacterBody3D
|
||||
WallHang(delta);
|
||||
}
|
||||
|
||||
private Option<Vector3> _plannedMantleLocation = Option<Vector3>.None;
|
||||
|
||||
// Jump
|
||||
public void OnInputJumpStarted()
|
||||
{
|
||||
if (CanMantle())
|
||||
{
|
||||
MantleToLocation(MantleSystem.FindMantleForHeadRotation(HeadSystem.Rotation.Y).Unwrap());
|
||||
MantleToLocation(_plannedMantleLocation.Unwrap());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1092,6 +1094,7 @@ public partial class PlayerController : CharacterBody3D
|
||||
LookAround();
|
||||
CameraModifications((float) delta);
|
||||
HandleStairs((float) delta);
|
||||
_plannedMantleLocation = MantleSystem.FindMantleForHeadRotation(HeadSystem.Rotation.Y);
|
||||
|
||||
if (WeaponSystem.InHandState.Active)
|
||||
RotateWeaponWithPlayer();
|
||||
|
||||
Reference in New Issue
Block a user