How could I make a ball bounce when on a specific material?
I am attempting to make a ball bounce consistently when on a specific material. This is made in the rolling ball example project, so the player is controlling the ball. I simply want to be able to make the ball bounce continuously when it hits the ground, but I do not want it to bounce off of other objects such as walls or placed props. How would I go about this? Thanks.
asked Dec 31 '15 at 05:40 PM in Blueprint Scripting
Create yourself a physics material (or use one of the ones that comes with the engine.) Assign it to the material you use on the floor. When you collide with the floor, check which physics material it is and respond appropriately. This can probably be done inside the physics material itself, but I've not played about with them much.
answered Dec 31 '15 at 05:48 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here