Speed and movement question
MattButlerStudios
Member Posts: 486
I have 2 questions that need to be addressed.
1) How do I make an object (a ball for instance) not always move in the same direction when hitting an object. For instance say I have a room and the ball keeps hitting the floor and then hitting the ceiling endlessly. I want the ball to sometimes change it's angle and hit the wall occasionally. How do I make this happen?
2) How do I make the ball (as described above) maintain a constant speed and never change from that speed?
Thank your for your help in advance. -MattButlerStudios
Comments
Anyone?
www.mbstudios.co | Free Stuff
@MattButlerStudios, to point 1
Put the following rules in the actor:
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
@MattButlerStudios ,
for point 2, make sure that friction is set to 0 in all walls and actors that collide.
Also make sure drag is set to 0 in the moving actors.
This way the motion should not slow down over time, despite collisions.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
@Hopscotch Wow, thank you for the excellent response!
www.mbstudios.co | Free Stuff
My pleasure @MattButlerStudios
Just to add to your constant speed question, bounciness should be set to 1 in all colliding actors.
So, a system with
will conserve all kinetic energy.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
@Hopscotch just wanted to thank you again for the help. Everything turned out great!
www.mbstudios.co | Free Stuff