Two boxes are at play in my scenario. One starts on the ground while the other is dropped on top of it, with gravity turned on. I'm attempting to trigger the collision event listener on the bottom box that rests on the ground, but for some reason, nothing is being logged as expected.
A new Physijs.BoxMesh object named 'c' is created using a CubeGeometry and MeshBasicMaterial, positioned at coordinates (10, 0,-5). A collision event listener is added to 'c', yet when a collision occurs, the expected message "hello world" is not printed out.
scene.add(c);
A clone of 'c', named 'p', is then created with its position set to a height of 50 units and added to the scene.
I'm stumped by what could be causing this issue - perhaps something related to the use of __dirtyPosition
?
EDIT: I experimented without using the clone()
method and instead creating a new second box from scratch, but sadly, the outcome remains unchanged.
EDIT 2: It's important to note that despite the simulation running smoothly, I am unable to get the collision listener to function correctly.