Download

Reference center of blueprint collision box

I’m trying to reference the center of each instance of a blue print class. When line trace hits the fertile ground, I want it to plant something there (right now I’m just spawning a coin). My problem is that the coin always spawns at the center of the world, not the center of the class blue print that the line trace is hitting. How do I fix this? I’m getting the world location of “Box” which is a collision box that is part of the fertile ground blue print class that “Fertile” is referencing. I thought that would give me the center location of the actor. The Fertileground blue print consists of a directional light source shining to the ground (so i can see where the box is generally) and the collision box that I’m targeting. Adding 50 to z axis just in case I may be colliding with something.

Capture.PNG