Skip to content

sharing codebase regarding a collision problem that is not firing a collision event on PhysiJS based ThreeJS project

Notifications You must be signed in to change notification settings

syedrakib/threeJS_collision_problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

This is a ThreeJS project which utilizes the PhysiJS library to simulate a physics engine on a falling box

Screenshot of falling box

cd to project root

run a simple HTTP server to host the project with python -m SimpleHTTPServer 8080

visit localhost:8080 from your browser


Expected outcome: a box will drop on the ground and it will produce an alert box saying "Box just hit the ground"

What's happening: alert box is not being created. Relevant javascript console logs are also not being produced upon collision.


You can inspect the physijsBox.addEventListener() portion in the scripts/app.js file in the source code.

Relevant PhysiJS documentation:

About

sharing codebase regarding a collision problem that is not firing a collision event on PhysiJS based ThreeJS project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published