A collection of articles, apps, and other digital resources, thematically tied to the subjects of art, design, programming and general philosophy. All content created by "The Imp".

This website does not use cookies, because they are high in sugar and saturated fat. (Yes, they are tasty too, I know, I know...)

Player collision system


Three.js is a javascript library designed to assist developers in programming 3D web graphics. This experiment is a little game engine that features keyboard controls, wall and floor obstacles that the player may collide with, and multiple, iterable camera angles. A large credit goes to Stemkoski, for his raycaster-based hit detection solution, which this is a development of. For readers desiring an explanation as to how this was made, refer to this article. For the source code, you can use the "Visit app" link above, and view the page source, as the code is not compressed or minified in any way, and is designed to be read as an example. Note: ThreeJS has disabled some input gestures - you may need to use your browser GUI menu to open developer tools.

Comments (0)

Replying to: Noname


Utilising this page as a billboard for marketing purposes is not allowed. Any messages posted by users that appear to be commercial in nature will be deleted, and any user found breaching this term will have their IP address reported to ICANN. This may result in their networks appearing in worldwide electronic communication blacklists.