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"

Set Location for Physics handle component always sweeping

Hi! I am using a physics handle component to carry objects arround with you (in front of you). I have a teleporter mechanism where the player is teleported from point A to B. If I use Set Actor Location for the player it works, the player is transfered directly to location B. However, any carried objects are NOT teleported instantly. Instead, it moves the entire way from the players old place to the new one, sweeping. Sometimes, this is impossible due to walls and/or floors stopping it from reaching the player character.

How can I DIRECTLY SET a simulated actors location, without moving it all the time?

Ive tried everything, even set target location in the teleporter code but it doesnt work.

How do I solve this?

Thanks in advance

Product Version: UE 4.15
more ▼

asked Mar 12 '18 at 06:46 PM in Using UE4

avatar image

41 1 5 13

avatar image hideto May 22 '19 at 06:16 PM

any updates on the topic?

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

1 answer: sort voted first

If you are holding an object. Save a reference to this PrimitiveComponent and its Actor. When you teleport your character, you also need to set the world location of the held object to the desired held object location.

You can call SetWorldLocation on the primitive component.

  • Swept: False

  • Teleport: True

Or you can call Teleport on the held object's actor if the physics component is the root of the actor.

more ▼

answered May 23 '19 at 06:22 PM

avatar image

2.2k 39 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