Sorryt i don't have write all my script
I have an array with all my sprite and i have a function when i do a right click on sprite it apply a rotation and when i wan't to apply my rotation it's work but my collision is not correct
for (var j = 0; j < cont.length; j++) {
var c2 = cont[j];
b.contain(c2, {x: 0, y: 0, width: 2400, height: 1800}, true);
if(selectCont!=c2){
if(activeCollision == true){
let collision = b.hit(selectCont,c2,endCollision,false,true);
}