How do i create a floor/wall so that my spawn actors coming from the top or moving from left to right gets its movement restricted to within the screen and will not leave the screen premises?
easiest way is create a new actor...call it 'wall' if you like.
Then in the wall actor add a collide behavior and choose the actors you want to be stopped by the wall. You can then vary both the actors physics restitution/density/friction to vary how they bounce.
but i tried it already, the actor collided with the floor.. yes but it continues falling after bouncing once but what i wanted was for the actor to bounce a few times and stop on the floor. Any ideas?
or do i have to change gravity for the object(correct me if i sound stupid here)
Comments
Then in the wall actor add a collide behavior and choose the actors you want to be stopped by the wall. You can then vary both the actors physics restitution/density/friction to vary how they bounce.
but i tried it already, the actor collided with the floor.. yes but it continues falling after bouncing once but what i wanted was for the actor to bounce a few times and stop on the floor. Any ideas?
or do i have to change gravity for the object(correct me if i sound stupid here)