camera incline on wall run and normal run
This commit is contained in:
@@ -33,6 +33,11 @@ public partial class MantleSystem: Node3D
|
||||
{
|
||||
return Option<Vector3>.None;
|
||||
}
|
||||
if (_wallInFrontCast3D.GetCollisionNormal(0).Y > 0.8f)
|
||||
{
|
||||
GD.Print(_wallInFrontCast3D.GetCollisionNormal(0).Y);
|
||||
return Option<Vector3>.None;
|
||||
}
|
||||
|
||||
var collisionPoint = _wallInFrontCast3D.GetCollisionPoint(0);
|
||||
var collisionNormal = _wallInFrontCast3D.GetCollisionNormal(0);
|
||||
|
||||
Reference in New Issue
Block a user