mantling seems to work
This commit is contained in:
@ -131,16 +131,15 @@ public partial class DashSystem: Node3D
|
||||
_camera.Rotation.Z));
|
||||
|
||||
(HasHit, PlannedLocation, CollisionPoint, CollisionNormal) = ComputeDashLocation();
|
||||
|
||||
|
||||
ShouldMantle = false;
|
||||
// var mantleLocation = Vector3.Zero;
|
||||
// if (HasHit && Mathf.Abs(CollisionNormal.Y) < 0.5f)
|
||||
// {
|
||||
// var mantleResult = _mantleSystem.FindMantleLocationAtPoint(PlannedLocation, CollisionNormal);
|
||||
// ShouldMantle = mantleResult.IsSome(out mantleLocation);
|
||||
// }
|
||||
// PlannedMantleLocation = mantleLocation;
|
||||
var mantleLocation = Vector3.Zero;
|
||||
if (HasHit && Mathf.Abs(CollisionNormal.Y) < 0.5f)
|
||||
{
|
||||
var mantleResult = _mantleSystem.FindMantleLocationAtPoint(PlannedLocation, CollisionNormal);
|
||||
ShouldMantle = mantleResult.IsSome(out mantleLocation);
|
||||
}
|
||||
PlannedMantleLocation = mantleLocation;
|
||||
|
||||
// Setup dash target
|
||||
var targetColor = HasHit ? new Color(1f, 0.2f, 0.2f) : new Color(1f, 1f, 1f);
|
||||
|
Reference in New Issue
Block a user