gd,ld: some LD and some bug fixing that didn't fix the bugs
This commit is contained in:
@ -54,7 +54,7 @@ public partial class DashSystem: Node3D
|
||||
var collisionPoint = _dashCast3D.GetCollisionPoint(0);
|
||||
var collisionNormal = _dashCast3D.GetCollisionNormal(0);
|
||||
var collisionShape = (SphereShape3D) _dashCast3D.GetShape();
|
||||
var centerSphereLocation = collisionPoint + collisionNormal * collisionShape.Radius;
|
||||
var centerSphereLocation = collisionPoint + collisionNormal * 0.2f;
|
||||
return new DashComputationRecord(true, centerSphereLocation, collisionPoint, collisionNormal);
|
||||
}
|
||||
|
||||
@ -72,7 +72,7 @@ public partial class DashSystem: Node3D
|
||||
|
||||
var shouldMantle = false;
|
||||
var mantleLocation = Vector3.Zero;
|
||||
if (hasHit && Mathf.Abs(collisionNormal.Y) < 0.01f)
|
||||
if (hasHit && Mathf.Abs(collisionNormal.Y) < 0.5f)
|
||||
{
|
||||
var mantleResult = _mantleSystem.FindMantleLocationAtPoint(collisionPoint, collisionNormal);
|
||||
shouldMantle = mantleResult.IsSome(out mantleLocation);
|
||||
|
Reference in New Issue
Block a user