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"

How to apply constant forces on player characters

Hello. I would like to apply some continuously changing forces on the player character in order to simulate flight but I can't get it to work perfectly. I tried to do it by applying the net force on the character during each tick. This was done by dividing the net force by the mass of the player character and adding the resulting acceleration*time per frame to the current velocity. This seems to work well until the character touches the ground, which causes the falling animation to freak out. Also If the character hits a jump pad or anything that changes the velocity by launching the character, there seems to be no effect. I feel like there is a better way to doing this but apply force doesn't seem to work on player characters since they are not static.

Attached are images of the entire aerodynamics script, close ups of the individual parts and the initialized values used in the calculations.

alt text

alt text

alt text

alt text

alt text

alt text

alt text

Product Version: UE 4.7
Tags:
more ▼

asked Jul 19 '15 at 03:19 PM in Blueprint Scripting

avatar image

Kanoue Yuuma
1 2 3 3

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

1 answer: sort voted first

couldn't you just set the movement mode to flying if you want to simulate flight?

more ▼

answered Feb 13 '18 at 07:57 PM

avatar image

Indicidian
22 1 6 10

(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