Is it possible to incorporate basic collision detection into my game, using ray casting if possible?
Take a look at this snapshot of my game. The random block moves downward while the paddle must avoid it.
All objects in my game are generated using the following code:
paddle = new THREE.Mesh(
new THREE.CubeGeometry(
paddleWidth,
paddleHeight,
paddleDepth,
paddleQuality,
paddleQuality,
paddleQuality),
paddleMaterial);
I attempted to implement a raycasting solution in the past but encountered issues with its functionality.