x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

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).

Product Version: UE 4.11
Tags:
more ▼

asked May 30 '16 at 11:37 PM in Blueprint Scripting

avatar image

Malharhak
61 4 6 10

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first
  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.

more ▼

answered May 31 '16 at 01:36 AM

avatar image

SparkyMcSparks
221 6 7 12

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question