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"

Undesired Behavior: Character teleports when floor standing on teleports.

  • Character standing on a dynamic object.

  • Dynamic object gets teleported or location set(not swept)

  • The player sweeps with the path.

I reproduced the bug in a blank project, downloadable from dropbox here.

I also recorded this video demo of the problem, can be watched

Product Version: UE 4.18
more ▼

asked Jan 28 '18 at 12:23 AM in Blueprint Scripting

avatar image

2.1k 38 17 52

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

1 answer: sort voted first

I was able to find a workaround to this problem after combing through the CharacterMovementComponent code.

The undesired behaviour comes from this part of the code. Which is responsible for moving the character with the floor it is standing on. This is a useful feature for when the character is on a moving platform.

Because I didn't want to have to modify the engine and run on a custom build where this code is can be gated by a boolean. My workaround is clearing out the character's stored floor reference.

However, because the function I want to call is public and not BlueprintCallable, I wrote a static function in my library to make the call.

 // .h
 UFUNCTION(BlueprintCallable) static void ClearCharacterFloor(ACharacter* Character);

 // .cpp
 void UDaakorunFunctionLibrary::ClearCharacterFloor(ACharacter* Character)
     Character->SetBase(nullptr, NAME_None, true);
more ▼

answered Jan 30 '18 at 01:04 AM

avatar image

2.1k 38 17 52

(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