Hey everyone,
In my project, I have an object firing projectiles. When it hits an object I want to store what that object is so that I can do a compare so that I can decide to do damage to it or not.
I've got three objects in my prototype:
- The Shooter
The Receiver
The Projectile
However, when the projectile collides with the receiver object, I can see that in the projectile FSM that the game object variable (myTarget) isn't being set.
I'm guessing that I'm not configuring something correctly with my objects rather than there being something incorrect in my FSM's, but I'll be damned if I can figure out what it is.
I have both objects set up with colliders and rigid body components. Here's what the inspector panel looks like on both of them.
The Projectile:
The Receiving "Hit" Object:
Note: I can clearly see the projectiles impacting the Receiver Object, but for some reason Get Collision Info is not capturing the Game Object as a variable.
Any ideas anyone?