toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
Coliding and bouncing off in another direction?
gpoppi
Member, PRO
Posts:
47
September 2009
edited November -1
in
Working with GS (Mac)
hi how can i manage to get an object collide against another object and the bounce off in another direction?
Comments
scitunes
Member, Sous Chef
Posts:
4,047
September 2009
create a rule that says when object 1 collides with object 2
-change attribute
-self.angular velocity to whatever angle you want.
put this in which ever object you want to bounce
you should also check the physics (restitution (which means bounciness), moveable, etc.)
gpoppi
Member, PRO
Posts:
47
September 2009
yes but id like it to actually divert itself in another direction not only bounce off , is it possible?
scitunes
Member, Sous Chef
Posts:
4,047
September 2009
instead of the change attribute behavior drag a velocity behavior in and set the speed and angle to whatever you want
Sign In
or
Register
to comment.
Comments
-change attribute
-self.angular velocity to whatever angle you want.
put this in which ever object you want to bounce
you should also check the physics (restitution (which means bounciness), moveable, etc.)