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);
|
||||
|
@ -4,7 +4,7 @@
|
||||
[ext_resource type="PackedScene" uid="uid://wq1okogkhc5l" path="res://systems/mantle/mantle_system.tscn" id="2_pff7b"]
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_qu4wy"]
|
||||
radius = 0.1
|
||||
radius = 0.2
|
||||
|
||||
[sub_resource type="SphereMesh" id="SphereMesh_qu4wy"]
|
||||
|
||||
|
Reference in New Issue
Block a user