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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

why is my child actor not following its parent ?

hello , i am a beginner and don't know how parenting work properly so i have this problem where i created an actor and in it it has other child actors when it spawns but the thing is the transform for the parent works fine but for the child it seems like its adding up with its parent for some reason so its always *2alt text

Product Version: UE 4.18
Tags:
untitled.png (694.6 kB)
untitled1.png (469.8 kB)
more ▼

asked Jan 11 '19 at 02:59 PM in Blueprint Scripting

avatar image

SWORDoSADNESS
1 1 3

avatar image ZoltanE Jan 11 '19 at 03:21 PM

Are you sure the child actor's relative location remains 0? EDIT: Well, I mean stays on whatever value it's on when spawning.

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

1 answer: sort voted first

How are you attaching it to its parent? Maybe try AttachToActor?alt text

attachto.png (35.1 kB)
more ▼

answered Jan 11 '19 at 03:43 PM

avatar image

DmitriAzimov
106 3 3 6

avatar image SWORDoSADNESS Jan 11 '19 at 03:47 PM

alt text

untitled.png (73.5 kB)
avatar image ZoltanE Jan 11 '19 at 03:55 PM

It seems that you use Obstacle spawn point transforms, which are in world space, and assign them as relative.

avatar image SWORDoSADNESS Jan 11 '19 at 04:06 PM

how do i fix it ? i get your idea but don't know what to do !

avatar image ZoltanE Jan 11 '19 at 04:14 PM

Something like this:
alt text

avatar image SWORDoSADNESS Jan 11 '19 at 04:28 PM

it fixed that issue but it shifted it in the y axis !

avatar image ZoltanE Jan 11 '19 at 04:53 PM

That is probably something else going on. Make sure the actor pivots and spawn point locations are all where you expect them to be.

avatar image DmitriAzimov Jan 11 '19 at 03:52 PM

Try to have the cube be a separate actor instead of a component and attach it to the platform with AttachToActor. It won't become a child, but will follow the platform's transform.

(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