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"

Bug when exiting WaterVolume (slow-down) ?

Hi, The project I'm working using a fair amount of water environments, I checked the WaterVolume feature. Everything works just fine except for that "slow-down" effect when exiting the volume.

Here's a video to show you the issue (the red/green Line below the character is just a debug LineTrace of my Jetpack feature, the only thing allowing me to get out of that damn water) : [https://www.youtube.com/watch?v=RVMG8--1ieU]

Any idea how to fix that ?


Here are the Volume settings : alt text


These are the Water Movement parameters inside the Defaults section of my CharacterBlueprint. I've tried editing these values but it won't change anything : alt text

Thanks a LOT ! Cheers -Etienne

Product Version: Not Selected
Tags:
more ▼

asked Nov 17 '14 at 03:51 PM in Bug Reports

avatar image

DynaMesh
6 1 4 5

avatar image TJ V ♦♦ STAFF Nov 17 '14 at 09:30 PM

Hi DynaMesh,

How are you driving your jet pack? Are you using a Launch Character node?

avatar image DynaMesh Nov 18 '14 at 09:35 AM

Hi, I'm using an Add Force node, and the closer to the ground the more force I add (LineTrace). I was using a Launch Character node for some time but there was the same issue with water exiting.

EDIT: Well actually I've just tried to get back to a Launch Character node and the bug won't show up. BUT (now I remember why I put it aside) using Launch Character inside the water volume will get you to the falling state, and you'll just fall, ignoring buoyancy. So can I get my Add Force to work properly ?

avatar image DynaMesh Nov 19 '14 at 07:58 AM

Or is there a way to get the Launch Character working inside a WaterVolume ?

avatar image TJ V ♦♦ STAFF Nov 19 '14 at 02:23 PM

I see exactly what you are talking about when using Add Force. I'm still trying to find a workaround for that.

In the meantime you can try playing with the Launch Character. One way I believe should work (I haven't tried this yet) would be to set the Movement Mode manually through blueprints. You could do something like, on key release see if the player is in the water volume, if so, then set the movement mode to Swimming. If not, set the movement mode to falling. The Walking mode should automatically take effect when the player touches the ground.

avatar image DynaMesh Nov 19 '14 at 03:41 PM

Great, thanks for checking that up!

Unfortunately LaunchCharacter won't work in my case. Since my Character rotation system is behaving differently from one MovementMode to another, I can't allow the MovementMode to be set on falling while in a water volume, it just messes things up. Even if I set MovementMode to Swimming RIGHT after the LaunchCharacter Node, it just keeps on switching Mode rapidly (I printed it) and that's really dirty. So yeah, no LaunchCharacter in my case, thanks for the tip though.

Will wait on your update, cheers!

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

2 answers: sort voted first

Okay, so this possible solution doesn't set the Movement mode to falling in the water so it may work for you.

Set the Movement mode to Flying while the jetpack button is held and when it is released, set it to Swimming. If the player is out side of a swimming volume the system will automatically set the movement mode to Falling on release.

alt text

If this doesn't work, post back and we can keep troubleshooting.

ah_jetpack.jpg (79.0 kB)
more ▼

answered Nov 19 '14 at 09:43 PM

avatar image

TJ V ♦♦ STAFF
41k 1009 183 494

avatar image DynaMesh Nov 19 '14 at 10:23 PM

Sorry to say but that won't work either. Since the state would be on falling, the Character would ignore the Water settings (such as buoyancy) and so will not ignore gravity, causing the jetpack speed to be different whether going up or down. Sure I could add some nodes to correct it but that would seem a bit too hardcoded.

I'm pretty confident AddForce is still the best (clean) way to get it within my current setting, though I guess the slow-down issue is not that easy to troubleshoot. Thanks again for your time.

avatar image TJ V ♦♦ STAFF Nov 19 '14 at 10:45 PM

I'm unsure of what you mean. This setup is using an Add Force node. The only time the Falling mode is active is when the jetpack is not active and the player is out of water.

avatar image DynaMesh Nov 19 '14 at 10:59 PM

Oh, right. Sorry I didn't get that right. I'll try it as soon as I can. Just one question though, doesn't the flying mode set the Character to ignore gravity (I mean when out of water)?

avatar image DynaMesh Nov 20 '14 at 11:42 AM

This trick does work pretty well! That's great, thanks a lot. Great support from you devs :)

Cheers -Etienne

avatar image TJ V ♦♦ STAFF Nov 20 '14 at 02:04 PM

Glad to hear it, thanks! :) Good luck on your project!

Cheers,

TJ

(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