MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000003Trackgame[All Projects] Corepublic2014-11-26 00:092014-12-19 20:20
ReporterPrndndrd 
Assigned ToPrndndrd 
PriorityhighSeveritymajorReproducibilityhave not tried
StatusclosedResolutionno change required 
PlatformOSOS Version
Summary0000003: [Engine] Collision problem with borders
DescriptionFound one case where a move of a player ended in a crash with a border while it should not have happens.

After looking deeply with paint, it seems like there is one pixel difference between expected collision and effective one.

It is not SUCH a big deal as the player move MUST have at least one pixel matching with the border (so this can be judged as actual crash), but it is supposed to be a pixel of graphical border and not an engine one.
Additional InformationMap with the problem : "bubuche"
Move concerned : see screenshots.
TagsNo tags attached.
Attached Filespng file icon fail_collision.PNG [^] (125,304 bytes) 2014-11-26 00:09


png file icon fail_game.PNG [^] (159,733 bytes) 2014-11-26 00:11

- Relationships

-  Notes
(0000001)
Prndndrd (administrator)
2014-12-19 20:20

After deep inspection, this is not a bug after all.

Indeed, collision detection is done on each pixel of the trajectory and also on the four cardinal pixels around the pixel tested. If any of those cardinal pixels collide with a border, then a crash is triggered.

Here there is only one pixel affected (a left one) but it makes the crash happens.

Cardinal pixel test is done in order to avoid having a trajectory going through a border without triggering a crash. (Which can happens under certain specifics circumstances.)

Anyway, there is still a contact with the border, so this move ending into a crash is not absurd.

- Issue History
Date Modified Username Field Change
2014-11-26 00:09 Prndndrd New Issue
2014-11-26 00:09 Prndndrd Status new => assigned
2014-11-26 00:09 Prndndrd Assigned To => Prndndrd
2014-11-26 00:09 Prndndrd File Added: fail_collision.PNG
2014-11-26 00:11 Prndndrd File Added: fail_game.PNG
2014-11-26 00:14 Prndndrd Summary [Engine] Collisions problem with border => [Engine] Collision problem with borders
2014-11-26 00:14 Prndndrd Description Updated View Revisions
2014-12-19 20:20 Prndndrd Note Added: 0000001
2014-12-19 20:20 Prndndrd Status assigned => closed
2014-12-19 20:20 Prndndrd Resolution open => no change required


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker