Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Some Time my 2d Hero Jumps very long jump .. I am confuse Why !!

Discussion in 'Scripting' started by Abhijit-Mukherjee, Feb 21, 2015.

  1. Abhijit-Mukherjee

    Abhijit-Mukherjee

    Joined:
    Jan 9, 2015
    Posts:
    193
    Hi ,
    JUMP of my Hero making me crazy ... I have rigid body attached with my 2d game object . The configuration of my rigid body as below .
    Gravity = 3 ,
    angular Drag = 0.5,
    mass = 0.5,
    Fixed Angel = true ;
    Is Kinematic = false ;

    In Jump Script :

    I am using AddForce (Vector2.up * 700) inside Fixed Update .

    Some time my hero jumps long very long jump don't know why .


    Thanks,
    Abhijit M
     
  2. PGJ

    PGJ

    Joined:
    Jan 21, 2014
    Posts:
    897
    How are you triggering your jump?
     
  3. Abhijit-Mukherjee

    Abhijit-Mukherjee

    Joined:
    Jan 9, 2015
    Posts:
    193
    Hi ,
    I am triggering through touch input written inside Fixed Update .