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.