User Tag List

Results 1 to 6 of 6

Thread: [Phizix] Collision with Line segments

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Jul 2006
    Location
    Near Nantes (Brittany)
    Posts
    241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Phizix] Collision with Line segments

    Hello,
    I have a body which has many line segments. I assigned to it a collision type (for instance 1001) that I registered. But I can't find a way to test collisions with this body (of course I know how to test collision with other bodies).
    I think my code is wrong somewhere but I just would like to make sure that collisions can be tested with a body composed with line segments.
    Thanks in advance.

  2. #2
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeň, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Phizix] Collision with Line segments

    Line segments should only be used for static objects as they can't collide with each other...

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Jul 2006
    Location
    Near Nantes (Brittany)
    Posts
    241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Phizix] Collision with Line segments

    Thank you, Daniel, but I wasn't clear enough : say I have a ball (body circle) colliding with the border of the frame (body line segments). Can I check this collision ? I can't find how to do it (I would like to remove the body of the ball).

  4. #4
    No Products Registered

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

    Re: [Phizix] Collision with Line segments

    Give the ball and the border different Collision Types and register the collision between them. Just make sure you set the Collision Type after all shapes/lines are added to the body.

  5. #5
    Clicker Multimedia Fusion 2

    Join Date
    Jul 2006
    Location
    Near Nantes (Brittany)
    Posts
    241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Phizix] Collision with Line segments

    Thank you Werbad. So, my code is wrong. I'll try and find what's not working. Is there a limit with collision types (I use 1000 for the ball and 1001 for the borders : may there be a problem due to these collision types) ?

  6. #6
    Clicker Multimedia Fusion 2

    Join Date
    Jul 2006
    Location
    Near Nantes (Brittany)
    Posts
    241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Phizix] Collision with Line segments

    It works now. Many bugs (which I'm not proud of :blush: ). I had to reduce the speed of my ball for the collision to happen.

Similar Threads

  1. Making Worm Segments?
    By Keehan in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 19th May 2012, 07:45 AM
  2. Phizix for Iphone (box2d and phizix)
    By iamjot in forum Extension Development
    Replies: 8
    Last Post: 6th May 2011, 08:41 AM
  3. Need a draw line & make active follow line example
    By BREK in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 29th January 2011, 09:50 AM
  4. Phizix Collision Sounds Problem
    By Dines in forum File Archive
    Replies: 3
    Last Post: 19th June 2008, 12:49 PM
  5. Phizix - Collision Noises
    By Dines in forum Extension Development
    Replies: 7
    Last Post: 18th June 2008, 11:51 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
  •