User Tag List

Results 1 to 3 of 3

Thread: Box2D rotating bat test problem

  1. #1
    No Products Registered

    Join Date
    Jun 2006
    Posts
    1,630
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Box2D rotating bat test problem

    hey,

    why this getting buggy? I suppose it's because I should use rotating joints?
    Attached files Attached files

  2. #2
    No Products Registered

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

    Re: Box2D rotating bat test problem

    The problem is that the shape of the rotating body is misplaced. Shapes are added relative to the body's origin, which is the same as the objects hot spot in this case, so the shape is added 180 degrees off.

    Also, for this kind of simulation you should make the body dynamic and rotate it by activating the revolute joint's motor. Directly setting the angle/position of a body like this will result in tunneling.

    If you want a clearer overview what is happening, add an Overlay covering the screen and start Box2D's debug-draw in it.

  3. #3
    No Products Registered

    Join Date
    Jun 2006
    Posts
    1,630
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Box2D rotating bat test problem

    hmmm I see. I'll keep studying this extension and see what I can do with it. Many thanks!

Similar Threads

  1. Box2D Shape test
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 5th May 2013, 09:38 AM
  2. Box2D - Rotating Door for Jacob
    By netninja in forum File Archive
    Replies: 6
    Last Post: 2nd July 2010, 06:41 AM
  3. BOX2D - Shape Test / BodyID to an array then loop
    By Tuna in forum Hardware Accelerated Runtime
    Replies: 9
    Last Post: 12th April 2010, 10:26 PM
  4. Rotating active + overlap problem (maybe bug)
    By Algul in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 19th December 2009, 05:08 AM
  5. Phizix - Box2D Ragdoll Test
    By Werbad in forum File Archive
    Replies: 45
    Last Post: 2nd August 2009, 12:35 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
  •