User Tag List

Results 1 to 9 of 9

Thread: Phizix Object- Dragging bodies?

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCiOS Export ModuleSWF Export Module
    xhedgehogx's Avatar
    Join Date
    Nov 2007
    Location
    NY, USA
    Posts
    743
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Phizix Object- Dragging bodies?

    Is it possible to click on a body and drag it somewhere? I know how to do it with the last body ID, but I want to move whatever. Also, keeping the speed and acceleration of the mouse.

    I'm trying to build something like Star wars force unleashed, but having nothing to do with star wars.

    Thanks

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Phizix Object- Dragging bodies?

    uhm, set the position of the body to the mouse X and Y?

  3. #3
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Phizix Object- Dragging bodies?

    Physical bodies should only be moved by modifying their velocities, unless it is for a teleporter. Directly setting the position will ignore collision detection and some other vital things.

  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Phizix Object- Dragging bodies?

    Then do this

    x velocity = xbody + ((xbody-xmouse)*0.5)

    and same for y velocity except use y instead of x.

    Should work.

  5. #5
    Clicker

    Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCiOS Export ModuleSWF Export Module
    xhedgehogx's Avatar
    Join Date
    Nov 2007
    Location
    NY, USA
    Posts
    743
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Phizix Object- Dragging bodies?

    How am I supposed to know what the BodyID of the active is that I'm "picking" up?

    Other than that, from what mechabowser said, everything else seems pretty understandable.

  6. #6
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Phizix Object- Dragging bodies?

    Have you attached actives to the objects? In that case you can use the expression "Get Body ID from Active" to retrieve it's body ID.

  7. #7
    Clicker

    Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCiOS Export ModuleSWF Export Module
    xhedgehogx's Avatar
    Join Date
    Nov 2007
    Location
    NY, USA
    Posts
    743
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Phizix Object- Dragging bodies?

    I have a box attached to it. The box can be multiplied. But I'll try that. The group for them is Group.1.

    I'm getting syntax errors from that expression.
    -------------
    I think I fixed the syntax errors, but it isnt working.

    ActiveBodyID( "Phizix - Chipmunk Engine", Fixed( "Crate" ))+ActiveBodyID( "Phizix - Chipmunk Engine", Fixed( "Crate" )-XMouse)*0.5

    That was a valid expression, but it didn't work.

  8. #8
    Clicker

    Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCiOS Export ModuleSWF Export Module
    xhedgehogx's Avatar
    Join Date
    Nov 2007
    Location
    NY, USA
    Posts
    743
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Phizix Object- Dragging bodies?

    I have another question about the phizix too.

    Is it possible to have more than one ragdoll at once? The joints seem to only work on one of them.
    I mean with like a copy and pasted ragdoll, he falls apart in runtime.

  9. #9
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Phizix Object- Dragging bodies?

    ActiveBodyID( "Phizix - Chipmunk Engine", Fixed( "Crate" )) is the body ID...
    Use:
    Set X Velocity of Body ActiveBodyID( "Phizix - Chipmunk Engine", Fixed( "Crate" )) to (Xmouse - X("Crate")) * 25
    Fine-tune the force by changing the 25 part.

    The ragdoll issue is most likely because Phizix can only create one at a time. Try looping through all ragdolls and create the joints one ragdoll at a time.

Similar Threads

  1. Allow user to adjust object sizes by dragging
    By Kracker in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 26th December 2012, 12:11 PM
  2. Dragging object
    By Bruto in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 26th May 2011, 03:20 AM
  3. Phizix - dragging the body help
    By Cronn in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 24th September 2009, 08:06 AM
  4. Sub-Application Object Dragging
    By Cody in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 18th September 2009, 04:12 PM
  5. Phizix - Loop through bodies?
    By Raylax in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 30th December 2008, 08:37 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
  •