Why enable/disable collision when you can just ~

Discussion and feedback on Construct 2

Post » Thu Dec 25, 2014 7:21 pm

Why enable/disable collision when you can just enable/disable the physics behavior for that object ?

They seems to be doing the same thing.

One option requires you to use a slower version of physics instead of Box2D asm.js so why not just disable the behavior ?
What conditions require anyone to Disable the collision instead of just disabling the physics for that object altogether ?
B
12
S
3
Posts: 288
Reputation: 1,694

Post » Thu Dec 25, 2014 7:37 pm

Because if you have say Object A that needs to collide with Object B, but not Object C. You would disable collisions between A and C, allowing A to collide with B.
If you just disabled the physics behavior of A, then A wouldn't collide with B.

Edit.. also, perhaps C should collide with B as well.. You wouldn't be able to just disable Object C.
B
41
S
19
G
65
Posts: 1,085
Reputation: 37,842

Post » Thu Dec 25, 2014 9:42 pm

Thank you :D
B
12
S
3
Posts: 288
Reputation: 1,694


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests