Hi there,
As per the title, I'm trying to create a "push" spell (think fus-roh-dah) that will use an addforce on all rigidbodies in the camera view to move them away like a sudden blast of wind.
'Add Explosion Force' only works as a 360 degree radius, and 'Add Force' only works on individual rigidbodies.
Unless there is a way to create some kind of 'Add Explosion Force' but just within a given arc, the only way I can think of to do this is to do a 'Raycast All' from the camera position, from this array find all rigidbody actors in the camera frustrum/view, and then 'Add Force' to each of them based on distance.
This sounds like a lot of work (which I don't mind doing!) but if there is an easier way to do this I would love to know.
Thanks! Tony.