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"

[Closed] ComputeFloorDist not accessible in 4.7.6

Well, I want to get the distance from the capsule and the ground floor.

I was told to use function computefloordist() in charactermovementcomponent.

But it seems that this function is not accessble.

BTW, my version is 4.7.6.

Is there any way to solve this problem?

Product Version: Not Selected
Tags:
more ▼

asked Aug 03 '15 at 01:36 PM in Using UE4

avatar image

Answers.Archive STAFF
1.9k 210 316 690

avatar image Answers.Archive STAFF Aug 03 '15 at 01:36 PM

Hi,

We think this post contains useful information which we would like to share with our public UE4 community. With your approval, we would like to make a copy of this post on the public AnswerHub which includes the discussion but strips out your username and company name. Please let us know if you are okay with this.

Thanks!

avatar image Answers.Archive STAFF Aug 03 '15 at 01:36 PM

Feel free to make a copy on answerhub. :)

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

The question has been closed Aug 03 '15 at 02:09 PM by Ben Halliday for the following reason:

The question is answered, right answer was accepted


1 answer: sort voted first

CharacterMovement caches the most recent floor check in the CurrentFloor member variable. ComputeFloorDist() is used internally to fill in this result.

more ▼

answered Aug 03 '15 at 01:36 PM

avatar image

Answers.Archive STAFF
1.9k 210 316 690

avatar image Answers.Archive STAFF Aug 03 '15 at 01:36 PM +

Thanks for your answer, But I want to get the distance to the ground while the character is flying or falling.

It seems that we can't get it in CurrentFloor variable.

avatar image Answers.Archive STAFF Aug 03 '15 at 01:36 PM

Right, CurrentFloor is only valid during walking movement, we don't try to find the floor in other modes.

I can expose ComputeFloorDist to blueprints for 4.9 if you think that would be helpful.

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

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question