Why is my USphereComponen always offset?
I use a USphereComponent to detect when enemies or other objects approach the player. It worked perfectly in 4.8, but when I updated to 4.9 it started spawning at an offset from the player. I added a line to the constructor to set its location relative to its component to origin:
But this has no effect whatsoever. Every time a character spawns, their sensory sphere is down and to the right of their model, like so:
Is there something else I should be doing in the class constructor to ensure that the sphere is always centered around the player?
asked Aug 31 '15 at 05:00 PM in C++ Programming
When creating the sphere component you want to attach it to whatever component you want it to follow (usually the root component). Setting
answered Aug 31 '15 at 08:17 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here