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"

Actor always spawns at 0,0,0 no matter what.

It's just a spawn actor from class, the transform is the origin of the bp spawning it's bounds. If I do a print string it says it's in the right location except I can physically see that it isn't.

Product Version: UE 4.22
Tags:
more ▼

asked Aug 11 '19 at 05:06 PM in Blueprint Scripting

avatar image

PerCat
46 1 3 7

avatar image ClockworkOcean Aug 11 '19 at 06:26 PM

Can you show us the code for the spawn? Specifically how you make the Transform.

avatar image PerCat Aug 11 '19 at 06:44 PM

Sure

alt text

spawnhelp.png (238.7 kB)
avatar image ClockworkOcean Aug 11 '19 at 07:12 PM

Ahh... What kind of thing is the master spawner? Does it have a known center / pivot point?

I'm assuming you're print string comes out with the correct result, I'm wondering if you might have to move to actor after spawning...

avatar image PerCat Aug 11 '19 at 07:16 PM

It's a bp actor with a scene component and a shit ton of hism components. I use this to drive the spawning of details around the region like trees, rocks, flowers etc etc...

It's set to moveable as well and it's quite easy to see that it isn't in the right spot as it has a trace in a large bounding box that is the same size as the level so it being on 0,0,0 makes a hard edge on the terrain where nothing is being spawned.

avatar image ClockworkOcean Aug 11 '19 at 07:23 PM

I'm thinking it's colliding with something already present, and defaulting to the origin. Can you try a more 'vicious' collision handling overide? ( like 'dont' care - spawn anyway' )

avatar image PerCat Aug 11 '19 at 07:25 PM

The collision handling override doesn't seem to change anything.

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

1 answer: sort voted first

Ok... When you say 'definitely in wrong place' you're looking at the spawn volume? Is that a child component?

:)

more ▼

answered Aug 11 '19 at 07:35 PM

avatar image

ClockworkOcean
1k 6 4 6

avatar image PerCat Aug 11 '19 at 07:43 PM

Wump there it is. The bounding boxes on the children were not set correctly, the origins were set to 0,0,0 and I mistook that as the actor was still at 0,0,0.

(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