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 do I allow player character to slide back down a slope?

This is probably pretty simple to all of you but I've been at it for some days now and I can't find the answer. I started off with the rolling ball template but although this had the desired effect of gravity and "rolling" back down the slope it wasn't quite what I needed. I've eventually created another character that works almost to exactly what I need but it just wont slide back down the hill.

When I simulate physics the character goes all crazy and won't even stay in the same spot for any amount of time.
Heres a bit of the blueprint that handles the movement. alt text Here's an example video of my char moving around on a slope. You will be able to see why I don't want to "roll" down the hill. Example video here

Thanks for any help.

Product Version: UE 4.10
untitled.png (280.1 kB)
more ▼

asked Jan 18 '16 at 01:49 PM in Blueprint Scripting

avatar image

16 1 2 5

avatar image [HP] Feb 08 '17 at 07:54 AM

Did you figure out a solution for this?

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

1 answer: sort voted first

Sorry for a late reply, but if you're still running into this problem: I ran into a similar issue and finally figured out a solution. You can get the current floor hit from character movement, then use the impact normal to get the direction, then put it into a looping timeline. Here is what mine looks like, just toggled rather than always on: alt text

slope.png (295.6 kB)
more ▼

answered May 12 '17 at 07:17 PM

avatar image

36 1 2 5

avatar image Dalposso May 13 '17 at 06:52 PM

Hi, I'm a little but of a newbie, there in the bottom, it seems like there's a lot of variables. Could you please let me know where do you use it and if there's any specifics on creating it? Thanks!

avatar image justdaveisfine May 16 '17 at 01:36 PM

I should have noted that in my project I needed the character to slide more easily and over much greater distances on toggle.

All those variables are default in the character movement component, which is automatically added when you create a character pawn.

avatar image Cerebros Jul 15 '17 at 12:42 PM

Hi Dave, what is the node that converts the normal of the hit result for the floor hit to Cosine angle to degrees?

avatar image Cerebros Jul 15 '17 at 01:19 PM

Never mind, it's the Dot Product.

(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