Snooker ball detection

Hi all,

In a game of snooker, how is it possible to log if a white ball hit a red ball or alternatively if a blue ball hit a black ball?

Since the ball might be spinning? Could it be done with just actor collision, if so how?

Many thanks

Physically simulated static mesh components can generate hits as they move about:

The actor containing said component will happily spit out what hit it. The Other pin would be the actor that hit our ball. Other comp would be the component itself - the static mesh. When any balls collide, they will all generate this event - this informs them what hit them and what they hit.

How you want to identify it all is up to you. There are too many ways of doing that. You could create a parent Snooker Ball blueprint with an Enumerator:

343131-screenshot-8.png

You can then assign the type from a dropdown. It could look somewhat close to this pseudoscript: