User Tag List

Results 1 to 9 of 9

Thread: Bouncing off rotating hexagon?

  1. #1
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    Bouncing off rotating hexagon?

    bounce.png

    I've been playing with bouncing things off spinning geometry (hexagons, octagons, etc).

    Based off that image, what seems a good way to handle the red dots bouncing within the yellow area of both image A and B? Keep in mind, the black line of the hexagon will be rotating? I've been playing with this, but as always, am curious how others would handle this.

    Additionally, I've been playing with having each side of the hexagons, octagons, etc being recognized individually and producing a different effect on collision.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    tompa's Avatar
    Join Date
    Nov 2011
    Location
    Uppsala, Sweden
    Posts
    358
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Interesting

    One solution is to have 2 actives, one with walls and one with yellowness (background). They would then rotate at the same speed. Balls would need perfect pixel detection against the walls.
    The only problematic part would be to calculate the output angle for balls after impact. I would do it with orbital positioning.

    Then again it could also be possible with the "Bouncing ball" movement

  3. #3
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    I've used bouncing ball as a stand in but it obviously lacks some finer detail of movement. I'll have to play with the orbiting to have each side of the geometric shape it's own active so I can consider collisions with each side separately. The math might get the better of me, however.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    tompa's Avatar
    Join Date
    Nov 2011
    Location
    Uppsala, Sweden
    Posts
    358
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes, I agree.
    Well there are some extensions that does the orbital math.

    Also I did this example a few days back that might shed some light.
    Attached files Attached files

  5. #5
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Very nice, tompa.

    By the way, what is your avatar from?

  6. #6
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    I've got a question. Is there an easy thing to tweak to slow down the rotation speed in that example?

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    tompa's Avatar
    Join Date
    Nov 2011
    Location
    Uppsala, Sweden
    Posts
    358
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh hehe, its from an old snes game called chrono trigger.

    A simple slower rotation would be to store the angle in a alt Value and then add/sub decimals to it. It will be orbiting very smoothly even at distance.

  8. #8
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    ^I like both of those answers. I didn't recognize the enemy but I played the hell out of chrono trigger in my day.

  9. #9
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    This leaves me off at a point I've been stuck at before. Custom bouncing ball movements. I've been digging through stuff for the past year on and off and still havent found anything definitive. Who knew such a seemingly simple action could be so difficult!

Similar Threads

  1. Bouncing
    By RickyRombo in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 23rd March 2010, 11:50 AM
  2. Rotating Gun
    By RickyRombo in forum File Archive
    Replies: 11
    Last Post: 22nd May 2008, 01:25 PM
  3. Hexagon-based Path Finding
    By McPhisto in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 30th April 2008, 03:31 AM
  4. Rotating
    By Zerofill in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 20th January 2008, 01:31 PM

Posting Permissions

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