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"

How can I make a ship interact with the waves on water ?

Hello, I have downloaded the water planes engine features sample and the bp_ocean has some awesome looking waves. The problem I am having is that whilst the waves are randomly generated and look 3d, the collision is a 2d box so my ship doesn't go up on the waves and it does not look realistic. If I try and apply convex decomposition the engine crashes so thats not the sollution. Any idea how I can sort this out ? Here is a picture of the static mesh . It moves around and goes from being above the collision box to being below it.alt text

Product Version: UE 4.9
waves collision.png (419.6 kB)
more ▼

asked Dec 26 '15 at 12:45 PM in Blueprint Scripting

avatar image

8 2 3 4

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

1 answer: sort voted first

First, this is a very good question. The problem of rigidbodies interacting with fluids is largely solved but extremely computationally expensive. It's also pretty complicated.

The tutorial you're looking for is the Render Target Lookup. Everything should still apply to UE4.9 https://wiki.unrealengine.com/Render_Target_Lookup

That tutorial does an excellent job, but the best solution to this problem in a game I've seen was having a set of sphere colliders mimic the approximate positions of the waves. By converting the waves into a heightmap and then creating a series of overlapping spheres (every sphere should overlap with its 4 neighbours by about 3/4 its radius), and have these overlapping spheres interact with the ship hull, which should be a very simple convex mesh, a surprisingly physically accurate model can be established. I'm not sure what the properties for the sphere materials should be in UE4, but with some tweaking this allows you to achieve both a good "look" and a reasonably good estimate of how much the waves should be physically pushing an object in a direction, as the spheres will push objects around as they roll.

more ▼

answered Dec 27 '15 at 07:55 AM

avatar image

447 35 36 67

avatar image Radosm Dec 27 '15 at 03:18 PM

Thanks man , will try it out :) Man I was looking everywhere for this :P

(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