How to get real world Collisions, eg, Ball hitting a wall

Hi,

I want to try making some fun and interactive games or experiences using a Digital Projector aimed at a blank wall. Such as having targets projected onto the wall where a person can then kick a soccer ball at the target for it to register the hit.

What could I use to try and detect this collision? I’m not sure whether I should be looking into ML Camera Vision or rather a LIDAR or camera based scanner for something like this.

Thanks in advance for your help! Looking forward to getting into this :smile:

With ARFoundation you can get the Mesh of the surroundings with an iOS and Magic Leap and HoloLens :
https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.1/manual/index.html

and you might find more answer in the AR Forum instead of the XR Interaction Tookit forum : Unity Engine - Unity Discussions

More looking for something like this:

So a projector will project targets or whatever onto a wall and something would then have to detect when and where the ball collides with the wall

I have had a look and it seems for the more high end solutions, developers have been using 6+ cameras which constantly track the ball and can then determine speed and force of the ball once it collides with the wall. I’m just wondering if there is another approach to this?

I’ve had really good luck using the old Xbox and Microsoft Kinects for interactive installations like this. It’s fairly simple to use that depth information to interact with your scenes. Plus they can still be found for cheap.

Ay! That sounds like a plan!

Do you know whether the Xbox Kinect V1 would work? Or would the V2 be needed for this type of interaction?

Either should work. If I remember correctly, the V2 is a bit easier to work with on Windows 10. Just make sure you also get the PC adapter kit. There are some great assets on the asset store to work with Kinect in Unity.

Noted! Thank you, I will check it out