Physics Layers?

Get help using Construct 2

Post » Wed Jan 29, 2014 6:33 am

Hey,

Is there a way to make Physics Layers so that a physics object will only collide with another physics object if its on the same layer as it?

Or simpler, make it so a physics object doesn't collide with 'x' object, but with all others?

Thanks!novs122014-01-29 06:33:27
B
4
Posts: 14
Reputation: 228

Post » Wed Jan 29, 2014 7:33 am

NO, Physics in C2 uses Box2D which has it's own entire world. There is no way to effectivly way to mix, match or be selective. Physics has to be treated as it's own existence.

The only way to do so would be to write a new Physics plugin that takes advantage of bitmasks with C2 Physics plugin doesn't :|
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,028

Post » Wed Jan 29, 2014 7:38 am

From the manual:

Enable/disable collisions

By default, all Physics objects collide with each other. You can disable collisions between the object and another Physics object so they pass through each other. This affects all instances of both object types. Note: enabling collisions again when objects are overlapping can cause instability in the simulation.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, Phacanu, richcoz81, Txchaser, Yahoo [Bot] and 29 guests