minimum velocity

SANDEEP410SANDEEP410 Posts: 46Member
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


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

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

    do ...

  • PBEmpirePBEmpire Posts: 676Member
    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 Posts: 1,303Member, PRO
    constrain speed = magintude(linearVelX, linearVelY)

    rule speed < 140
This discussion has been closed.