Physics bouncing ball

I am trying to create balls that can be launched and would bounce on walls, kind of like on a pong game, but in 3D.

I tried adding a physics material to the ball/walls with restitution, but my balls always end up sliding against the wall instead of bouncing. I tried adding a projectile movement component too but it wasn’t doing anything.

What I want is a ball I can hit, which launches it, and then it can bounce around, with some air friction to make it stop after a while.

I managed to launch the ball with an impulse I give it on a hit trigger, and air friction with a constant force applied against its direction, but I can’t get the balls to bounce properly.

Is there a way to achieve it properly? I think I have been using the physics system incorrectly.

Here is an example of the sort of physics I am looking for, in a Steam game (look at the video).

  1. Make a new Actor object
  2. On the root Details, make sure the Life Span is 0 (for infinite) which it should be by default
  3. Add a Collision component
  4. On Collision component Collision settings, change preset to Projectile
  5. Add a Mesh component for the visual model you’ll see
  6. Parent the mesh to the Collision component, and change the Collision preset to NoCollision
  7. Add a Project Movement component
  8. Set the following values for the Projectile…
  • Initial Speed: 3000.0
    *. Max Speed: 3000.0
  • Should Bounce: True
  • Bounciness: 1.0
  • Friction: 0.0
  • Bounce Velocity Stop Simulating Threshold: 0.0
  • Velocity: (X=3000.0,Y=0.0,Z=0.0)

Feel free to tweak / change settings as necessary, but that should get you on the right path. You can use the Event Hit to script in air friction or other gameplay related bouncing manipulation.