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?
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:
http://img46.imageshack.us/img46/1146/physbug2ij3.png
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:
http://img406.imageshack.us/img406/2...ysbug25gy5.png
The green ball acts as a power up and I want the purple one to collide with it.
Re: Physics collision types
What have you set the collision threshold to? Can you post an example MFA?
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.
Re: Physics collision types
Here is an example Nifflas:
http://www.mediafire.com/?45btjlxvnnm
:) Glad to be helped by the best ;)
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.
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?
Re: Physics collision types
All bodies can generate collision callbacks, so making it static should be no problem.
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...
Re: Physics collision types
Thank you! I should read this documentation. :D