toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
minimum velocity
SANDEEP410
Member
Posts:
46
June 2012
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
calvin9403
Member
Posts:
3,186
June 2012
edited June 2012
you can do this
if sqrt((actor's-motion-linear-x)^2+(actor's-motion-linear-y)^2)<=140
do ...
PBEmpire
Member
Posts:
676
August 2012
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.
ORBZ
Member
Posts:
1,304
August 2012
constrain speed = magintude(linearVelX, linearVelY)
rule speed < 140
changeVelocity(140)
Sign In
or
Register
to comment.
Comments
if sqrt((actor's-motion-linear-x)^2+(actor's-motion-linear-y)^2)<=140
do ...
rule speed < 140
changeVelocity(140)