Menu

#1 Tolerance

None
accepted
nobody
None
7
2013-01-12
2011-12-16
local girl
No

Hi there,

My program involves collecting collision data of absolutely positioned 'marquees' with a grid below. Sometimes my marquees have borders which means their overall size is bigger, this means they collide with more table cells than desired.

I would like to be able to ignore the extra width and height cause by the border by setting a px tolerance value. Say if the border is 1px then I would set a collision tolerance of 2px.

Now I write this, perhaps tolerance isn't even the right word - I hope you see what i am getting at anyway.

Many thanks

Many thanks!

Discussion

  • Sean Cusack

    Sean Cusack - 2013-01-12

    did you try setting a negative margin on the collider? haven't tried this yet, but it might help...

     
  • Sean Cusack

    Sean Cusack - 2013-01-12
    • status: open --> accepted
    • milestone: -->
    • priority: 5 --> 7
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.