Hello, I’m new here so I am sorry if this has been asked before. I tried searching for it but I can’t seem to find the right words for it.
Basically in Unity2D, I am trying to make it so instances of a new object(s) are spawned with a velocity or force in a direction depending on the collision or collision trigger between two objects, with their angle of movement determined by where the original object was hit.
For example: say one object (player) is moving up and hits the left side of another object (rock), the collision would spawn new objects (smaller rocks) moving right.
Would someone have an idea for how I would go about programming this?