User Tag List

Results 1 to 2 of 2

Thread: BOX2D removing joint problem

  1. #1
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Shmuper's Avatar
    Join Date
    Mar 2010
    Location
    Japan
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question BOX2D removing joint problem

    Hey there,

    I have a mouse joint object(A) following my player, when I press a button it creates a distance joint between my hero's mouse joint object(A) and another object(B). I can then move the Object with my character. However when i try to remove the joint (between A and B) , I go "remove by object" and choose Object(B) but then it also kills the mouse joint on Object A. It just won't follow my character anymore... I am out of ideas -_-

    In a nutshell, what I am doing :
    I want Object(A) to follow my main character (working with Mouse Joint)
    I want to create a Distance Joint Between Object(A) and (B) on buton HOLD (Working , Distance joint between the two objects)
    I want to remove the Distance Joint Between Object (A) and (B) on button release. Problematic, the mouse joint does not follow my player anymore and I think it might still be there since my debugger is showing 1/128 joint instead of 2/128....)

    So far everything works until it's time to remove the Distance joint...

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Shmuper's Avatar
    Join Date
    Mar 2010
    Location
    Japan
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Solved it by getting the LAST joint ID value and using that as Body ID and then using (2) as the Joint ID (remove joint by Body ID). I don't really understand it but it works. lol

Similar Threads

  1. Box2D problem :/
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 4th July 2012, 10:34 AM
  2. Box2D problem
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 27th June 2012, 07:52 PM
  3. problem export swf on box2d
    By matte in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 3rd May 2012, 04:14 PM
  4. Problem with Box2D
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 10th April 2011, 06:05 PM
  5. Box2D Chain Problem
    By DizzyDoo in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 4th May 2010, 01:20 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
  •