Hi, I have a question regarding Collision Polygons and the Rotate behavior. I am making an iOS game with CocoonJS and the thing is, the collisions are crazily laggy when it comes to my enemy sprite (which has a square polygon) and the ground which is a slope.
The enemy sprite is rotating, and my speculation is that its lagging so badly because when it rotates and hits the ground, the math the game is doing to calculate its movement from there and all the rotating and collision detection lags the game?
Is it possible to rotate the sprite a different way without rotating the collision polygons? not through animation.
Could you have invisible `collision` sprite pinned to it with position only?
Hmm, I never considered that, but would be really inconvenient :/
Develop games in your browser. Powerful, performant & highly capable.
Not really, put them in container and it all works pretty smoothly. :-) I'm not familiar with your particular case of course.
Oh yes! Containers!
Thank you vee41