YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
11 stars 4 forks source link

In-Game: physics_raycast() only returns hitpoints for the first edge of chain shapes #5741

Closed YYBartT closed 1 week ago

YYBartT commented 2 weeks ago

Description

The function physics_raycast appears to check only the first edge of a chain shape. When the ray intersects with the chain's first edge, a hitpoint is included in the returned array. For any other segment of the chain no hitpoint is returned.

PhysicsRaycast_chain_shapes.zip

Expected Change

All edges of a chain shape fixture are checked for intersection with the ray

Steps To Reproduce

  1. Start GameMaker
  2. Import the sample project and run it
  3. A circle is drawn when the ray intersects with the chain shape's first edge, not when it intersects any of the other edges.

How reliably can you recreate this issue using your steps above?

Always

Which version of GameMaker are you reporting this issue for?

2024.400 (Betas)

Which platform(s) are you seeing the problem on?

Windows

Contact Us Package Attached?

Sample Project Added?

rwkay commented 1 week ago

Fixed in 2024.6