Grabbed objects get stuck
In my project the player has the ability to teleport between levels, he can also pick up physics object in the world and teleport with them,
the issue is that when the player teleport with something in his hands it tends to get stuck between levels, and i don't know how to fix this
Ps: the levels are layered on top of each other
Thanks for any help!
asked Aug 30 '18 at 01:42 PM in Blueprint Scripting
If you are holding an object. Save a reference to this
You can call SetWorldLocation on the primitive component.
Or you can call Teleport on the held object's actor if the physics component is the root of the actor.
To prevent objects from getting stuck in the floor, I often teleport them to a location higher than the floor, then have move them down to the desired location in Z, with Sweep option on. This is similar to placing an object in the editor, then tapping the "end" key, although it won't place them so far down as that if there's no floor for a long way.
answered May 23 '19 at 07:23 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here