Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

I'd like to know how you can find the location (X,Y,Z) of any point in the game.

Hi, I'm new to Unreal to please bare with me.

I'd like to know how you can find the location of any given point in the engine. For example, the location of one of the corners of a rectangle with the centre of the rectangle being at (0,0,0)...

Product Version: UE 4.12
more ▼

asked Jun 06 '16 at 12:31 PM in Using UE4

avatar image

1 1 2 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I am not totally sure what you are asking for, but if i understood right , you could just select the mesh you want and if you look in the right side of the screen there is a detail window. There you can find the exact location of you mesh in the world (x,y,z), along with other importand information about your mesh. If you want to use the coordinates of a mesh in blueprint you could use get location of actor method to do it.

more ▼

answered Jun 06 '16 at 12:48 PM

avatar image

223 4 5 12

avatar image Armaniac47 Jun 06 '16 at 10:55 PM

Thanks for replying. Yes I understand that. But I meant something different. For example you have a cube. On the details window it states the location of the object. However, I want to be able to know the locations of the individual corners. Not the middle of thee cube.

Also, can you please tell me how I can get the ruler tool? I read online that you would need to hold down the wheel button on your mouse to use the measuring tool. However, when I hold down the wheel button it only allows me to move forward/backwards and up/down...

avatar image VortXGaming Jun 07 '16 at 07:57 AM

You can use the GetDirectionVector to find the distance between 2 points. If you know the location of the center point of the mesh and the size of the mesh , then GetDirectionVector could be useful . Check this too. https://answers.unrealengine.com/questions/361445/starting-from-point-a-get-location-x-distance-alon.html I do not know what you want to do with this , but if you want to move a mesh from one point to another you can use a function , and then transform node to the new coordinates that you could find with GetDirectionVector or even alone if you subtract the old from the new location . So for example , if you want to find the exact coordinates of the corners of that cube : If center is 0,0,0 , and the size of the cube is 10,10,10 you could do some math and find each one of them . The right left corner would be 10,10,0 .You can do this by moving on x,y,z axis. Well this is not a very pretty way to do this but it is the only one i can think right now. Maybe you could do it in c++. I do not see another way to find the coords of a point , unless you use that ruler tool you talked about. You need to be on orthographic mode and not on landscape mode to use the ruler tool with pressing the middle mouse botton . Also being in wireframe mode and not lit is going to make things easier for you. You can change them fro the top left of the screen of your game. I hope i helped you enough , and you could find a solution to your problem .Good luck!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question