User Tag List

Results 1 to 4 of 4

Thread: Scaling active objects results in inconsistent collision detection

  1. #1
    Clicker Fusion 2.5

    Join Date
    Sep 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Scaling active objects results in inconsistent collision detection

    Is this just the way things are? Collision events will just randomly not go through when dealing with objects that are scaled. Is use of precise collision known to make things worse in that regard? Help me figure this out!

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleXNA Export Module
    ProdigyX's Avatar
    Join Date
    Jan 2011
    Posts
    1,193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What movements are you using for the objects? Objects with physical movements do not get their hitboxes updated when said object is scaled. As such, physic-based hitboxes are currently unaffected by object scaling.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,155
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    Bumping up this old thread because I've just encountered this problem I was not aware of.

    I'm dealing with it in a custom-movement scenario,
    I'm checking overlaps between objects on loop, to negatively-position them when overlap occurs.

    I just noticed that this same collision code works when object's scale is 1,
    and then completely stops working (object passes through) when scale is different from 1.

    Any suggestions on how to deal with it,
    or any possible fix for this issue in the horizon (...how soon...? )

    I really need colliding with scaled objects.

    Going to make further testing meanwhile.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,155
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    Mmmm, I'm failing to reproduce the issue in a simpler environment.

    I'll keep trying to isolate the problem or identify some other cause in my main code...


    UPDATE:
    same exact code works ok in a brand new example and not works in main application.

    Only difference in main application from working to non working objects is scale <>1.

    Going to be a long night...


    UPDATE 2:

    Setting back scale to 1 while running application makes not working object's collision work again.
    Setting scale of 1-scaled objects to 0.9 or to 1.1 breaks collision.
    Gosh.
    This can't be a coincidence..
    (I know, you may very well not be interested in this )

    UPDATE 3:

    this is driving me crazy.
    <>1 scaled objects colliding ok when "use fine detection" is unchecked.

Similar Threads

  1. Replies: 5
    Last Post: 9th December 2014, 10:49 PM
  2. Inconsistent Behavior when scaling objects
    By killer1one in forum Android Export Module 2.5
    Replies: 2
    Last Post: 30th September 2014, 03:38 PM
  3. RRandom Function Giving Inconsistent Results
    By ITZ_A_TARP in forum iOS Export Module 2.5
    Replies: 1
    Last Post: 12th August 2014, 12:16 PM
  4. Replies: 2
    Last Post: 20th November 2013, 02:29 PM
  5. Bug: Inconsistent collision detection HWA/Standard
    By netninja in forum File Archive
    Replies: 4
    Last Post: 20th February 2011, 05:19 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •