How can i "teleport" a Destructible Mesh or set its location?

I try to follow a “portal” tutorial. the “teleport” works fine with my characterBP and static meshs,but can’t work with
Destructible Mesh (set location also can’t work with it).
and I also try to put it in a BP,and a bug appears when I teleport the bp.the Destructible Mesh just disappears.(the Collisions box stuck in air…)

How can i “teleport” a Destructible mesh???

Hi

Is there a reason you want to teleport? Could you destroy the DM and spawn one at the desired location?

just want to know how to teleport a DM.
yes,I can destroy the DM,but neither a complete DM nor broken one can be teleported.
If I put DM in a BP ,they can be spawned but can’t be broken or teleported(appear a BUG…)

Hi, all things written below from 4.7.6

  1. searching for Destructible mesh leaded me to Content Examples Sample Project for Unreal Engine | Unreal Engine 5.1 Documentation
  2. i opened content example and exactly level “destructibles”
  3. i opened BP of button staying near first DM and made simple algorythm of “find closes of class” like this Oops! to get reference for DM instance placed on map (sure it’s possible to make any own DMs, but i don’t sure how exactly, so i just used already working)
  4. since i used Get All Actors of Class you may see DM actually DA (actor), so actors can be moved by simple “teleport” or “Set actor location”, current state of DM seems have no matter, for example every DM triggered i move it 100 poins at X axis, 3 screensots for example

first - before any activation, note there’s hidden radial force actor, so after activation DM get destroyed into pieces Oops!

second - it took few activations (like 5 or 6) before DM moved, but seems it’s just due radial force actor starting again and again, but destroyed DM moved Oops!

third - keep moving it destroyed DM without problems with every single activation because i passed already through radial force actor Oops!

i have to note, before make it working i was getting wrong reference and moved black thing with button instead of DM, so i guess you problem can be same, just wrong reference to your DM or different version, i can try same in other version if you tell exact number

that way looks awesome!
thank you!!!happyhorror !!!

and could you upload a more clear one picture of that BP???I try to follow it but can’t distinguish some detail。。。。

my version is 4.8.2 but I’m updating it to 4.8.3 right now ;)

didn’t save changes, but most various nodes are:

“get all actor of class” with “destructible actor”
“for each loop”
“get actor location”
“vector lenght”
“teleport”

thank you ~~~~~~~
and just one more question,the DM is just a DM right??? not a DM be puted in
a BP???

in example project from link DM seems to be exactly just “destructible mesh” in content browser with few settings inside, you can check it on your own if you open same level “destructibles” and right mouse click on any yellow destructible pannel, then select find in content browser, but i sure you can put M into blueprint as well to make mix of DM, radial force actor to destroy it and blueprint for any code, but in such case to move you DM you actually need move whole bluprint placed in world, because DM pieces place in world bound to parent and maybe you can’t just move single DM piece

thank you so much!!!

sorry about that …all DM stuck in the air …again…

this is my BP

He gave you very good help. Perhaps you’ll consider accepting his answer so he gets credit for it?

sorry!!! why everytime I reply it will auto cancel the accepting???..

seems so work answerhub, i don’t really care about ratings or credits, regarding to your stuck DM problem

seems you set position of DM to coords of portal and if your portal doesn’t move pressing multiple times key to move DM again won’t change anything, i advice you add some debug messages like “get actor location” of you DM and portal and just print it to see if they differ each

…it must be a BUG!!!
yellow portal location blue DM location

even it was broken, its loaction never change

still not sure what your Portal1 variable contain on screen

how did you create portal? is it staticly placed in world or spawned at runtime when you start playing?

if you placed portal staticly in world, then you don’t need a variable Portal1, because there’s little trick - open your blueprint event graph on half of left screen side and keep on right side list on world objects, then just drag and drop your static portal from world list to event graph of blueprint and you get magic reference to your static portal in world, note this node isn’t variable, only looks so and idk why in BP event graph you can’t right click and find same reference

…um…it is just a fixed location(for now ,I want to make a portal gun later)

well…I tried few more times…
found that I only can get the “root” location of DM(it is fixed,even I push it forward or broken it into pieces)…
so…I think that there is something special about DM…
I may need to read the Documents of it again…

i tryed make everything from begin, but due missing knowledges on how make proper DM i just migrated asset from 4.7.6 content example into raw ThirdPerson template of 4.8.3 and here’s what i got

things on level Oops!

ThirdPersonCharacter BP changes part1 Oops! part2 Oops!

when start game and didn’t press left button yet Oops! after pressing DM and portal moves Oops!, also printed message mean radiall forces should be actived, but DM isn’t destroyed and i can’t find why, but teleporting work fine and can be repeated any times

link to whole archive with this project Oops! (download button on right, called “Скачать”)

it’s a bit fat like 840 mb, but you can open and try check on your own exactly same i did

try find why radial force doesn’t destroy DM, if you fix radial force and DM still will be teleported correct any times, then you can try migrate things to your map or try compare value by value

I almost give up…it may be impossible to touch the “true location” of DM’s pieces and whole DM
the final try of me

this one got nothing!!! nothing printed!!!

next one
thisBP can set the location…and stuck in air…

…um…i guess…
your DM is not only can’t be broken… but also stuck at that location…

they just not simulate any physics…just like my DM(in air)

crying…hope GOD or some one in EPIC can help me…

Hi again :),

it’s too early to give up

  1. at screenshot i see you cast , but doesn’t check if your cast fail, it’s first mistake and you better always handle cast fail with simple print because you may never know when casting fail, same for any flow control splitting, if you make branch for example and think execution never get by “false” - think again and place at least print on this end, to know when ■■■■ happen xD
  2. did you try my whole project archive? do you know why my DM won’t be destroyed, but teleports fine?
  3. when i migrated DM and placed it first i wasn’t able find if with “get all actors of class” by “destructible actor”! i cound’t before in physics settings i setted “destructible”, it looks weird because without any physics settings in world objects list DM still showed as type “destructible actor”, but seems for “get all actors of class” no matter and it collect objects depending on physics settings or setted physics group, this maybe a root of problem if you physics settings somehow differ or placed DM miss “movable” setting instead of “static”