Actor glitching after camera change
I've got a strange issue occurring: the game starts and a Sphere drops to the floor in front of a camera actor and settles. Then, on a button press, the camera changes from the first Camera Actor to one attached to a Third Person Character. The second the camera swap happens the Sphere appears to glitch out and crazily flies around the level before disappearing from view. The most annoying thing about this is that I'm only able to reproduce it maybe 2-3 times out of 5 attempts.
As far as the Sphere goes, it's a standard one from the Basic panel with a Sphere Collider attached. It has a bit of scripting in the Blueprint to reset the position every time it passes through a couple of specific trigger volumes (the start position of the Sphere is not near either of these).
Any help or suggestions would be appreciated.
asked Jun 28 '17 at 10:54 AM in Blueprint Scripting
For anyone else having this issue, Vertigo23's solution fixed it. I basically ended up creating a new collision channel specifically for blocking WorldStatic objects and ignoring all others, then from there I turned on more Object Responses until I found the Object Response that appeared to be causing the issue. In my case I'm guessing it was either the Camera or the Pawn responses that were causing the problem.
answered Jun 29 '17 at 10:34 AM
This is a wild guess but it could have to do with physics culling, as you swap camera the engine might see that as the object no longer being in the viewport and, (depending on your optimization settings), either turning of physics or skipping a couple of updates in order to save some performance - this possibly could possibly cause errors if it happens on the wrong update.
I haven't dived into this to much in ue4 yet, but Iw seen similar situations in other, (older), engines so it could be something to look into.
answered Jun 29 '17 at 10:24 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here