-
Notifications
You must be signed in to change notification settings - Fork 551
Description
Describe the bug
In version 4.1.3 projectiles had no issue hitting fast moving actors. In 4.2, hit detection frequently fails and the projectile moves through the actor.
To Reproduce
Steps to reproduce the behavior:
- Create a project in 4.1.3.
- Create a platformer scene with an actor that moves left and right rapidly in its "on update" tab and set its speed to 4 and collision group to 1.
- In the "on hit" tab, for the newly created actor, under "group 1", add an event to display a simple message when hit.
- Attach a script to the B button and have it launch a projectile from the player. Have the projectiles speed set to 6 and make sure it collides with collision group 1.
- Run the project in 4.1.3 first. The projectile should never miss. Migrate the project to 4.2 and watch as the projectile now frequently misses its target and passes through it. Especially when the actor is moving towards the projectile.
Expected behavior
Collision detection accuracy like that in the previous version, 4.1.3.
Platform (please complete the following information):
- OS: Linux 64-bit
- App version: 4.2
Additional context
I have attached a zip file that contains two projects (one for version 4.1 and one for 4.2) that recreate the steps mentioned above. Run the 4.1 file in version 4.1.3 and press B (X on the keyboard) to shoot. Do not move the player from their start position. The projectile will never miss. Open the 4.2 file in version 4.2 and do the same. The projectile will sometimes miss its target.
Collision Test Projects.zip