I currently have a scene where if I stab a trigger collider I can make an object spawn from the object that was stabbed. I need this object to be rotated in the direction of the point of contact that the 2 trigger colliders initially met. I think I just need "Create Object" to properly use "Rotation" and "Position" but it seems to not do anything with how I'm handling setting them.
I set the object being hit to "hitObject" and the hitting object to "hittingObject" and they both have isTrigger checked. As they make impact currently they do correctly send a message and events across - but it does not seem to rotate the spawning object to the point of contact.
I have 2 global variables for vector3 and vector3normal which I tried using with "Get Collision Info"'s 'Contact Point' and 'Contact Normal' and it did not work. Then I proceeded to try it with "Get Event Info"'s 'Get Vector3 Data' which it also did not work. By "did not work" I am assuming the data is not being saved, but I'm not sure how to check out what is currently being stored.
I've also tried taking the "hittingObject" and doing "Inverse Transform Direction", "Smooth Look At Direction", and "Smooth Look At". None of these I've been able to make the spawning object face the correct direction.
Does anyone know?