Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.
This repository was archived by the owner on Jun 30, 2023. It is now read-only.

Bug: Godot Nodes 101: Raycast2D Gun Tutorial code. #56

Description

@rKinson

I'm submitting a...

  • Bug report.
  • Feature request.

Bug report

What is the current behavior?

This relates to the Godot Nodes 101: Raycast2D Gun Tutorial code.

After completing the tutorial video at Godot Nodes 101: Raycast2D Gun Tutorial I move the Player up and left so it approaches a target, obstacle or turret diagonally and when pressing fire, the ray (even when in-line and within range) doesn't collide with anything so no hit is generated.

If the Player is stationary and pointing up and left with any target, obstacle or turret in-line and within range of the ray and I press fire, the ray collides and a hit is generated.

What is the expected behavior?

Moving the Player diagonally up and left whilst firing at a target that is in line and in range should produce a hit.

Tell us the steps to reproduce the bug, and if possible share a minimal demo of the problem.

  1. Enable the 'Visible Collision Shapes' option.
  2. Run the Godot Nodes 101: Raycast2D Gun Tutorial code.
  3. Do what I describe above in "What is the current behaviour" section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions