Suggestion: Rotate without affecting collision box

Discussion and feedback on Construct 2

Post » Fri May 10, 2013 4:54 pm

I think it would be a nice feature to have a option to disable rotating collision boxes when using the rotate behavior. On mobile, having these rotating collision causes massive lag spikes whenever a collision is detected. Just an idea!
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Fri May 10, 2013 5:51 pm

Citation needed! Collision checks should be very quick, even on mobile.

If you want to test for collisions differently to the object's own collision mask, use an invisible sprite to check collisions with instead.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Fri May 10, 2013 8:26 pm

@Ashley It'll be pretty hard to reproduce unless you get my game on CocoonJS, maybe you'd like to look into it? It gets worse when the collision masks have slopes, and worse when there are more polygons.

I've considered that, but then I'll be creating twice as many sprites, the rotating collision enabled sprites are enemies!
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Sat May 11, 2013 3:14 pm

If there is a real lag spike due to collision masks, it should be easy to reproduce in a new project. I've never heard anyone else reporting that collision masks cause such problems, so it may be something else in your project instead.Ashley2013-05-11 15:15:10
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 13 guests