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"

RigidBody goes crazy after teleport

Hey, I use the RigidBody Node in World Space for secondary animation in the Animation Blueprint of a character. The problem is that physics start to go crazy when the character teleport over a longer distance. Which makes sense becasue it tries to solve superfast movement. What is the best way to avoid this? I already tried to set the alpha of the RigidBody Node to 0 when the character moves too fast or teleports. This is working when the character moves very fast directly at the first tick but when it starts to simulate for some frames this is not working anymore. Is there a way to reset the state of the RigidBody node back to ref pose or to disable the RigidBody simulation?

Product Version: UE 4.18
Tags:
more ▼

asked Nov 04 '17 at 03:21 AM in Blueprint Scripting

avatar image

WAII
153 6 11 15

avatar image Manspear Apr 14 '18 at 04:22 PM

Did you find a solution? I got the same problem. Currently I am turning off physics right before the teleport, and when teleport finished it turns on physics again. This mostly works, but sometimes it doesn't and this causes crashes.

avatar image otoko_tenshi May 01 '18 at 11:44 PM

Are you getting the same issue as me? At first I could teleport the player from one part of the level to another, but now when it does, it keeps moving in the direction it was teleported in until it hits a wall. it does this instantly so i am thinking too that it is dividing the distance traveled in the teleport by the time and instanttaniously making that the speed vector of the player so that the speed once it stops teleporting is (d/t) = LOTS. I havnt tried turning physics off and on because the player is just a camera at the moment.

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

1 answer: sort voted first

what function you use to teleport? If its "set actor transform" with teleport ticked it will, as it is making a transform change. however if you use "teleport" function it should not apply any force to your character. if you want a cool rigid body/cloth fall of after teleport, teleport slightly off the ground.alt text

teleport.jpg (122.6 kB)
more ▼

answered Apr 14 '18 at 05:36 PM

avatar image

AngeIV
26 2 6

avatar image WAII Apr 14 '18 at 06:50 PM

For me both didnt make any difference. What I do now as a workaround is: I changed the rigidbody node fom world space to component space and add the chracter velocity via extrnal forces. This velocity is clamped to make sure it works with teleports.

(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