User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: How to add object controlled by the extension in the physics world?

  1. #1
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,755
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)

    Question How to add object controlled by the extension in the physics world?

    Hi all.
    Do you know how to add object controlled by the extension in the physics world?
    I'm making player character using the Platform Movement object. However, it does not affected with physics movement (spring, etc) and physics extensions (treadmill, etc).

    Can you make any example?

    Thanks!

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You can't. Platform Movement Object works by setting the position of the object it is controlling - to work with physics you would want the velocity, not the new positions.

  3. #3
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,755
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    In theory I should use built-in physics platform movement. However, it is can't control by input extensions (e.g. Joystick 2, Key Object, etc.).

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Normally, with the default settings of the Physics - Engine object, active objects with a non-physical movement should be added to the Box2D World. Unless (before version 281) you use a "Create object" action to create the object. They only are included in the world if the are present in the frame editor.
    But be aware that non-physical objects added to the world are things that Box2D does not like very much. I have to enforce the position of the object at each loop, so it pushes (like a bully) all the objects around it. It will not exactly react like a true physical object. It will though generate collisions and bounces.

  5. #5
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,755
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Francois
    Normally, with the default settings of the Physics - Engine object, active objects with a non-physical movement should be added to the Box2D World.
    Can it add active controlled by Platform movement object to Box2D world?

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Yes, it will add any active object controlled by whatever you want.

  7. #7
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,755
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Please look at attached file.
    Physics effect objects does not affect with active controlled by PMO.
    Have you any ideas?
    Attached files Attached files

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Yes, of course the special objects like fan, magnet, treadmill, spring wont have an effect on a non-physical object (how could they as they cannot discuss with the non-physical movement routines).
    But your PMO object will push an active object with a physical movement. So what you want to achieve is impossible.

  9. #9
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,755
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Francois could you add actions of left/right moving and jumping like as PMO for the physics-platform movement?
    Currently, the inbuilt platform movement don't need event for its moving. But, it can't control by input extensions (e.g. Joystick 2, Key Object, etc...).

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Koji_Kabuto's Avatar
    Join Date
    Jul 2006
    Location
    Venezuela
    Posts
    2,851
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    How to add object controlled by the extension in the physics world?

    +1

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Replies: 5
    Last Post: 15th November 2016, 11:28 AM
  2. Physics question! Making AI that uses Physics Platformer/Physics Static movement
    By Krim in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 13th December 2013, 03:19 AM
  3. Possible to make some simple object fall physics without physics engine?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 3rd March 2012, 08:56 AM
  4. top down physics with the physics extension?
    By cel in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 24th April 2009, 08:04 AM

Posting Permissions

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