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"

Negative gravity locks character to "floor"

Hello, I am having a problem with negative gravity in my project. If I enter e.g. -2 into the character movement component's gravity scale, the character will be pulled towards the ceiling (so far so good), but if I somehow touch the floor by jumping (I have to use Launch Character in my project, in this case z is set to -1000 and the ZOverride box is ticked), the character will not go back up. It will stick to the floor, even though gravity is pulling it up. Everything goes back to normal as soon as the character hits another object. I was able to recreate this in another simple project and it seems like the engine "thinks" it doesn't have to calculate gravity on the character because it is standing on what the game thinks is the floor.

Product Version: UE 4.12
Tags:
more ▼

asked Sep 03 '16 at 09:05 PM in Using UE4

avatar image

gladeare
3 1 4

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

1 answer: sort voted first

Hi gladeare,

This is just how the character class handles interactions with the floor. You would either need to alter/create your own solution in code or workaround the issue.

You can workaround it by setting the 'Set Walkable Floor Z' to 1 while gravity is reversed. Then back to 0.71 when it is set back to normal.

Let me know if that works for you.

Cheers,

TJ

more ▼

answered Sep 07 '16 at 04:34 PM

avatar image

TJ V ♦♦ STAFF
41.1k 1009 183 493

(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