add jsdoc comments for physics
add jsdoc comments for shaders
Merge pull request #2186 from joshuastray/issue5868

add jsdoc comments for physics