Solid Tag
The solid
tag creates a solid object that will prevent a grav
element moving through it.
Only grav
and solid
elements can interact with each other.
The solid tag has many uses. It can serve as a wall or platform to help add more fun to your project.
It is added the same way as the grav tag by adding class=
.
To show how important and useful solid can be, remove the solid identifier on the right hand side of the screen. As you can see the gravity div simply travels through the red div rather than bounces off of it.