Search Unity

Ball Position does not reset properly

Discussion in 'Scripting' started by April, Mar 2, 2010.

  1. April

    April

    Joined:
    Dec 14, 2009
    Posts:
    62
    Hi! I'm having a problem with resetting my ball position. It resets then goes back to another position.
    This occurs in random, not everytime. Sometimes, my ball resets ok. This happens especially when the ball's speed is very high.

    Thanks a lot
     
  2. andeeeee

    andeeeee

    Joined:
    Jul 19, 2005
    Posts:
    8,768
    Can you give some more detail about what the ball is supposed to be doing in the game and how the game works? Perhaps you could post any code you think might be relevant?
     
  3. April

    April

    Joined:
    Dec 14, 2009
    Posts:
    62
    Thanks, andeeee.

    I've solved the problem. I was using the Don't Go Through Things script found in unity wiki. It was meant to prevent objects traveling at high velocities from going through colliders. It competed with my scripts in positioning the ball. I almost forgot about it.