User Tag List

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

Thread: Physics collision types

  1. #1
    No Products Registered

    Join Date
    Feb 2007
    Location
    Sydney, Australia
    Posts
    1,654
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Physics collision types

    What are the collision typoes for the event "Set collision type".
    I know 0= No collision but which one means that it can collide with other actives?

    Edit: I cant seem to get my ball to collide with an active and make it dissapear. I really don't know the events.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Physics collision types

    Collision types have nothing to with whenever an object will collide or another or not. You use the Layer features of Phizix for that.

    Collision types is only related to collision callbacks (the 'on collision' conditions). To detect a collision, you must first register what collisions you want to detect (better do this at start of frame). If you register 0-0, all collisions between two objects of type 0 will trigger 'on collision' conditions. If you register 0-1, all collisions between an object of type 0 and 1 will trigger an 'on collision'.

    Did you check out the Phizix documentation?

  3. #3
    No Products Registered

    Join Date
    Feb 2007
    Location
    Sydney, Australia
    Posts
    1,654
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Physics collision types

    Thanks for youre reply Nifflas But I can't seem to get the right events and conditions. These are my screenshots:

    The Condition that goes with the first pic is "Start of frame"

    This shows what I want to happen when it collides and my Condition that wont work:

    The green ball acts as a power up and I want the purple one to collide with it.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Physics collision types

    What have you set the collision threshold to? Can you post an example MFA?

  5. #5
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Physics collision types

    Make sure that you set a body to a collision type after you had added all the shapes in this body. That was my mistake.

  6. #6
    No Products Registered

    Join Date
    Feb 2007
    Location
    Sydney, Australia
    Posts
    1,654
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Physics collision types

    Here is an example Nifflas:
    http://www.mediafire.com/?45btjlxvnnm
    Glad to be helped by the best

  7. #7
    No Products Registered

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

    Re: Physics collision types

    The active in your example doesn't even have a body...
    But the problem is the threshold. Try setting it to 0.01 or some other really low value and it will work.

  8. #8
    No Products Registered

    Join Date
    Feb 2007
    Location
    Sydney, Australia
    Posts
    1,654
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Physics collision types

    I added a body and it collides and stuff but now it roles down the hill. Can I make it static?

  9. #9
    No Products Registered

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

    Re: Physics collision types

    All bodies can generate collision callbacks, so making it static should be no problem.

  10. #10
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Physics collision types

    Use a mass of -1 to make the object static. All these things are mentioned in the extension's documentation though...

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Collision force - Physics Question
    By Slimjimmyb in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 12th December 2013, 01:57 AM
  2. Replies: 2
    Last Post: 20th November 2013, 02:29 PM
  3. Replies: 0
    Last Post: 6th October 2013, 07:41 AM
  4. Box2D "Disable Collision Types" not working?
    By gastrop0d in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 23rd December 2011, 12:32 AM
  5. Changing Backdrop affects Collision physics.
    By 00J in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 28th September 2008, 09:32 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
  •