Help: Any idea why I would be spawning in mid air.

Hi

When I hit T, it is suppose to spawn a BP via trace. I have tried to break the vector and put a negative amount in to drop it down. No luck, also turned collide on and off, no difference. Mesh seem to line up ok in the components TAB. Ignore the compiler error, it is for a BP I have not deleted yet.

Capture.JPG

7173c01bd1c175ad1105d4e245fe51d82cdc949d.jpeg

Regards

It’s spawning exactly where it should; since your cube actor is anchored at its base, rather than its center, the entire cube spawns “above” the actual spawn location.

The spawn location itself traces outward from screen center, so the box itself will spawn with its bottom edge aligned to screen center.

If you don’t want it to do this, you’ll need to re-anchor the box, or else take the Z value from the trace output (btw, are you SURE the trace is working properly? Print the location value to the screen; it seems to me it won’t hit anything with such a short distance) and subtract half the height of the box itself.

Hi,

Thanks for the reply.

I have tried to take up to 300 away from Z, no difference. So I may need to re-anchor.

How do I re-anchor. Is it as simple as dragging the meshes downward in the Components tab, or is there another way.

And with the line trace, I thought when I times it by 5000, that would dictate the distance I could use? If that is not correct or 5000 is too small of a number please tell me.

In regards to my line trace working. If I am close, the mesh spawn at trace. If I spawn along way away, visually looks correct, but when I get close it is spawning closer to me then where the trace landed. So something going on there.

Print String

X = 2017/ Y = 88/ Z = 100

if I turn around

X = 2250 / Y = 103 / Z = 100.

Regards