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"

Change player's gravity

Hi everyone !

I'm wondering how could I change the gravity of my character by pressing an input ?

I'm really newbie in Blueprint scripting, and after many researches, I didn't find a clear answer to my question. I would appreciate some help. :-) Thanks in advance !

Product Version: Not Selected
Tags:
more ▼

asked Jul 17 '14 at 10:52 PM in Blueprint Scripting

avatar image

Pataloon
6 1 2 4

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

2 answers: sort voted first

Right now you can only change gravity on the Z axis. It is hardcoded into the engine like that.

There are one or two projects to fix this ongoing though nothing works properly yet. If you want this working you will have to write your own gravity and set your character as not physics affected. Remember that this will require you to add everything from simple increase of fallspeed the longer you fall to in air, walked over a ledge and so on functions.

This is probably one of Unreals largest weaknesses. The Z gravity.

more ▼

answered Jul 18 '14 at 09:29 AM

avatar image

Erasio
5.9k 291 86 293

avatar image Pataloon Jul 18 '14 at 10:58 AM

Argh. Thanks man.

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

You should be able yo set character gravity in chracter movment component

more ▼

answered Jul 18 '14 at 12:41 AM

avatar image

Shadowriver
37.3k 936 172 1116

avatar image Pataloon Jul 18 '14 at 08:28 AM

Indeed I can do that, but this can't allow me to freely change my gravity while I'm playing. And unfortunately, I can't find the node "Set gravity scale" on Blueprint to change that. :/

(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