top of page

Set player location to cursor in world.

I keep forgetting this, so here's a note. Based on the info in this link, I tried setting up the math below in BP. https://forums.unrealengine.com/t/solved-mouse-location-to-world-space/4701 Well, after messing around, I realised the node below is not the one to use even though the name is very compelling...

This is some math from the forum posts that looks for a spot to place the character based on Mouse Location and Direction: cosDir = FVector::DotProduct(Direction, FVector(0, 0, 1)); SpawnLocation = Location + Direction  (Location.Z - 70.f) / cosDir  -1; It could be set up in blueprint, but there's an easier way to do this that works just fine:



Featured Posts
Recent Posts
Search By Tags
Follow Us
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square
bottom of page