SphereOverlapActors Sphere positioning question
im trying to spawn an overlap sphere about 10 units in front of my third person character based on where I am aiming. It seems like the the sphere position is based off of world vector though. Im still getting familiar with the whole vector side of Unreal and I cant think of how to convert either the camera or my characters forward vector and rotation to a world vector location the sphereoverlap can use.
When i plug it in now, the sphere appears at the same location which is around to 1,1,1 because the local character rotation never goes much higher or lower than that.
asked Aug 09 '18 at 08:22 PM in Blueprint Scripting
Make transform and you add 500 to X
answered Aug 09 '18 at 10:26 PM
You'd normally do it like this:
Get Forward Vector (direction vector), multiply it by distance and add it to your own location. This will produce a projected location along the direction vector at the specified distance (500 in this case)
answered Aug 09 '18 at 09:26 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here