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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

How to measure z-velocity on character when going up a slope

I want to get my camera to lead the character up/down when climbing stairs or going up slopes.

I currently lead the camera lateral-moves based on the characters xy-velocity.

However, the z-velocity will always be zero unless the character is falling.

So, question is:

  1. -How do I measure the character z-velocity when going up a slope?

  2. -Or, am I thinking about it the wrong way? Should I be measuring normal-angles of the ground instead?

Thanks!

Product Version: UE older version
Tags:
more ▼

asked Nov 25 '16 at 08:42 AM in Blueprint Scripting

avatar image

Stein Lotveit
41 1 4

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

3 answers: sort voted first

Here is a way to do it :

alt text

test225.png (226.8 kB)
more ▼

answered Nov 25 '16 at 09:04 AM

avatar image

Mhousse1247
3.5k 152 29 318

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

I think what you want is to get the Location before and after your character moves in a frame, thhe get the delta from the z and apply that to your camera?

more ▼

answered Nov 25 '16 at 08:55 AM

avatar image

ooOOooGravy
36 2 4 9

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

Thanks guys! This'll work :)

more ▼

answered Nov 26 '16 at 03:43 PM

avatar image

Stein Lotveit
41 1 4

(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