when running TestPhysicsRayCast I didnt see any change when the crosshair meets the elephant
I changed the code
List rayTest = bulletAppState.getPhysicsSpace().rayTest(cam.getLocation(), cam.getLocation().add(cam.getDirection()));
to:
List rayTest = bulletAppState.getPhysicsSpace().rayTest(cam.getLocation(), cam.getLocation().add(cam.getDirection().mult(100)));
then i saw the fpsText changed from: frame per second: xxx changed to elephant (Node)
It you get close enough to the elephant, you will see the change. The ray is only 1 unit long
2 Likes
I just tried to move the mouse before, now you mentioned it I tried to press w and I saw it ^^