x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to use local space coordinates ?

I have a blueprint set up like in the picture below ...

alt text

... now, everything works but if i turn the blueprint a bit left or right it loses the 2 coordinates i gave it because those are in words space. Is there a way around this that you know ? Thank you for your time !!

Product Version: UE 4.9
Tags:
example.jpg (117.9 kB)
more ▼

asked Oct 22 '15 at 10:14 PM in Blueprint Scripting

avatar image

marcomaryred
179 20 19 25

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

3 answers: sort voted first

Set Relative Location / Set World Location / Set Actor Location are three separate nodes:

I believe relative is local, World is world and actor location is world. I may be wrong but play around and you should figure them out pretty quickly.

more ▼

answered Oct 22 '15 at 11:22 PM

avatar image

KITATUS
2.3k 97 84 398

avatar image marcomaryred Oct 23 '15 at 10:01 AM

But I would need a "get relative" node, not a set one, this is the full set up I needed to fix: alt text

I need a way to get the relative position of a component and then add to it

pic.jpg (139.4 kB)
avatar image KITATUS Oct 23 '15 at 01:42 PM

Then you can simple use a "Get Relative Location" (Highlight the root object of this BP first) and you'll be fine :)

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

To Main Actor A add two empty Actors B and C in that positions. B-s position will be A-s local position + vector(38,60,12) and C-s Position will be A-s local position + vector(38,15,12). Actor has default function getActorLocation and this returns global position of Actor. So add 2 public functions to A. 1) GetPositionOfB- this returns getActorlocation B 2) GetPositionOfC- this returns getActorLocation C

more ▼

answered Oct 23 '15 at 10:39 AM

avatar image

kubiknubik
341 17 3 17

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

I found this solution to move an actor locally, using vectors (fordward, up..)

alt text

capture.jpg (153.7 kB)
more ▼

answered Nov 29 '18 at 09:20 AM

avatar image

samdax
1 1 1

(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