Search Unity

Collision stopped after I changed a function from FixedUpdate to Update.

Discussion in '2D' started by BindingForceDev, Jan 20, 2015.

  1. BindingForceDev

    BindingForceDev

    Joined:
    Aug 13, 2014
    Posts:
    40
    This may be a scripting issue, but it involves a 2D collider. Basically, I have a script called PlayerControl attached to my character game objects. As this handles input, I realized I needed to call Update instead of FixedUpdate after trying to find out why sometimes my input wouldn't be registered. After doing this, one of my main characters' attacks stopped causing collisions. The prefab still spawns but no longer does anything to enemies... This is odd, as this problem doesn't appear for any of the other attacks, nor for the abilities of my second party member. Basically each attack is an instantiated prefab that is created by calling the appropriate method in a separate 'PlayerName'Ability script, also attached to my characters, which I haven't altered. My project is posted here: https://github.com/funkenation/M7Demo/

    Any and all thoughts are welcome! Thanks in advance!