Announcement

Collapse
No announcement yet.

Calculate local location (in BP)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Calculate local location (in BP)

    Hi I've a Base BP and want to place a array of objects one besides previous one.
    For that I've placed a child actor to get the first object location, I can't get the right next position (I guess Child X world location + child Y vector)
    But the result is not what I expected, the inconvenience is if I place the base object in different rotation in the world. Somebody could help me to set up the right way to set it up right in any rotation?

    #2
    You're almost there, it's (X world location + Y offset) rotated by X world rotation. Use the "rotate vector" node for this.
    iTween For UE4
    Procedural pathed animation for actors, components & UMG - $0
    Runtime DataTable
    DataTables dynamically loaded from text or Google Sheets while your game is running!
    easyCSV
    Fast, cheap, and accurate CSV parsing at runtime!

    Comment


      #3
      Thank you for response, I show you what I've tried before but the result after offset is the same than with out it (I've checked in the outliner in Play and both has the same location).
      Don't mind the made vector for the Delta Location, if I put manually 0,10,0 (for example) the result is the same.
      Something else when I press Stop the Unreal crashes (4.5.1), I'm not sure if is about that.

      Click image for larger version

Name:	BP.jpg
Views:	1
Size:	127.9 KB
ID:	1061322

      Comment

      Working...
      X