Skip to content

Commit

Permalink
Change direction offset for projectiles
Browse files Browse the repository at this point in the history
  • Loading branch information
miarolfe committed Apr 13, 2023
1 parent 1c8a75b commit c6c42c0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CHIPSZClassLibrary/AirProjectile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ internal Vec3 GetDirection(Hand hand)

if (hand.handed == Handed.Right)
{
Matrix moveLeft = Matrix.R(0, -15, 0);
Matrix moveLeft = Matrix.R(0, -12.5f, 0);
direction = moveLeft.TransformNormal(direction);
}
else if (hand.handed == Handed.Left)
{
Matrix moveRight = Matrix.R(0, 15, 0);
Matrix moveRight = Matrix.R(0, 12.5f, 0);
direction = moveRight.TransformNormal(direction);
}

Expand Down
4 changes: 2 additions & 2 deletions CHIPSZClassLibrary/EarthProjectile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ internal Vec3 GetDirection(Hand hand)

if (hand.handed == Handed.Right)
{
Matrix moveLeft = Matrix.R(0, -15, 0);
Matrix moveLeft = Matrix.R(0, -12.5f, 0);
direction = moveLeft.TransformNormal(direction);
}
else if (hand.handed == Handed.Left)
{
Matrix moveRight = Matrix.R(0, 15, 0);
Matrix moveRight = Matrix.R(0, 12.5f, 0);
direction = moveRight.TransformNormal(direction);
}

Expand Down
4 changes: 2 additions & 2 deletions CHIPSZClassLibrary/FireProjectile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ internal Vec3 GetDirection(Hand hand)

if (hand.handed == Handed.Right)
{
Matrix moveLeft = Matrix.R(0, -15, 0);
Matrix moveLeft = Matrix.R(0, -12.5f, 0);
direction = moveLeft.TransformNormal(direction);
} else if (hand.handed == Handed.Left)
{
Matrix moveRight = Matrix.R(0, 15, 0);
Matrix moveRight = Matrix.R(0, 12.5f, 0);
direction = moveRight.TransformNormal(direction);
}

Expand Down
4 changes: 2 additions & 2 deletions CHIPSZClassLibrary/WaterProjectile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ internal Vec3 GetDirection(Hand hand)

if (hand.handed == Handed.Right)
{
Matrix moveLeft = Matrix.R(0, -15, 0);
Matrix moveLeft = Matrix.R(0, -12.5f, 0);
direction = moveLeft.TransformNormal(direction);
}
else if (hand.handed == Handed.Left)
{
Matrix moveRight = Matrix.R(0, 15, 0);
Matrix moveRight = Matrix.R(0, 12.5f, 0);
direction = moveRight.TransformNormal(direction);
}

Expand Down

0 comments on commit c6c42c0

Please sign in to comment.