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"

Walking In Shallow Water physics Volume

How would i walk in shallow part of water instead of keep swimming id imagine in the animation blueprint somewhere but am clueless, here is pictures of my problem, i dont like swimming above water, it itches,.

Product Version: Not Selected
Tags:
more ▼

asked Feb 28 '15 at 07:12 AM in Blueprint Scripting

avatar image

RydgeMrPinky
31 2 6 7

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hi, ran into this question, for anyone that comes by, here is how i handled it, Step 1: i created a blueprint with a box collider, to use as a custom water volume, on its "actor begin overlap", set 2 variables in character, first a bool, "IsInWater" to true, and then give character the top Z value of the volume in a float "WaterLevel". On Actor end overlap set IsInWater to false.

Step 2: In Character i have a "switch on movement mode" (movement mode is a variable in character movement component) that run on tick, while grounded do a is in water check, if true i get the difference between my root and WaterLevel, and run a curve to modify MaxWalkSpeed, and if difference is higher then lets say, the characters chest height, only then do i get charcater movement component, get its physics volume, set it to is water true, and set movement mode to swimmng,

thats the basics of it, to get back out of swimming while on low water i do some raycasting

The trick here is that get charcater movement component, get physics volume, set water true, when and how you want, not just on actor begin overlap like a regular water volume

more ▼

answered Oct 02 '18 at 11:51 PM

avatar image

Clazzid
1

(comments are locked)
10|2000 characters needed characters left
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