minimum velocity

SANDEEP410SANDEEP410 Member Posts: 46
edited June 2012 in Working with GS (Mac)
I want my ball to always have a minimum velocity of 140.I dont want the ball speed to drop below that.
How to maintain minium velocity

Comments

  • calvin9403calvin9403 Member Posts: 3,186
    edited June 2012
    you can do this

    if sqrt((actor's-motion-linear-x)^2+(actor's-motion-linear-y)^2)<=140

    do ...


  • PBEmpirePBEmpire Member Posts: 676
    hey calvin, i need help on maintaining constant speed when bounce off paddle. i cant use constrain velocity x to speed cuz i have assigned tasks for velocity x.
  • ORBZORBZ Member Posts: 1,304
    constrain speed = magintude(linearVelX, linearVelY)

    rule speed < 140
    changeVelocity(140)
Sign In or Register to comment.