- Home /
This question was
closed Oct 17, 2013 at 02:19 PM by
Jessy for the following reason:
Duplicate Question
Question by
Benjames · Oct 17, 2013 at 01:04 PM ·
oncollisionenterweaponsearch
Can I call OnCollisionEnter() for an object from another object?
I have a player struct with a gameobject, transform, necessary values, and a weapon. I want to call OnCollisionEnter for my weapon from my player.
I am trying to think out how to detect a collision. I want to get the values from the player, the weapon, and the effected enemy without running a function that searches through names or something to find a match.
I'm not sure how abstract this is, feel free to ask questions
Comment