Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Collision between two div vanillaJS no detection

let rect1 = document.querySelector('.perso').getBoundingClientRect();
let rect2 = document.querySelector('.obstacle').getBoundingClientRect();
 
PREVIOUS NEXT
Tagged: #Collision #div #vanillaJS #detection
ADD COMMENT
Topic
Name
1+9 =