Character movement impossible after actor's surface is changed using SetActorLocation or teleport

anonymous_user_0550bc7a
Tue, 01 Dec 2020 14:51:29 +0000
World Creation

Hi everyone, I’ve got a bunch of characters & the skeletal mesh is the sample content mannequin, with a few tiny alterations - can share more if required, and they all start out on Planet X, which is a blueprint class that’s really just a big, scaled up, sphere with a material texture.

After a while, I move Planet X to a far away location, and then I pick a new planet for the actors to all “go to”. In reality, the new planet is teleported (specifically, I use set actor location), underneath my actors.

That’s when the fun stops - and character movement becomes practically impossible - ridiculously stuttery, as though there’s some otherwordly force being applied to them (gravity?). Jump a few times and my character is sent into space. My instinct is: collisions, overlaps, ragdolls, physics, gravity, me being bad.

Anyone encountered this before? Obvious things to check that I’ve missed?

Thanks in advance, I am wondering if this is even the best approach (swapping the actor locations in/out). I figured it would make my life easier for when I am editing those however.

FWIW I’ve also tried implementing a “reset spawn position” function for my characters, but that’s even worse. They’re teleported fine, but unable to move regardless of whether they’re stuck in the ground or not, and then if I wait around for the next planet launch, they end up at -24xx, -24xx, -5000 which rapidly becomes -10,000, etc. May be a clue.

Also, this is an MP game. Perhaps it’s replication related…cheers.

2 posts - 1 participant