Hi, I have made an Actor Spawning Blueprint which consists of a -Spawn Actor from Class- node, a -Box Collision- and a -Random Point In Box- node oriented to the Default Scene Root. I get the extent of the box and pass the vector along to the spawn location of the -Spawn Actor from Class- node. Everything spawns, however the area in which the actors spawn, based on the Extent of the Collision Box, is oriented to the Default World Coordinates of 0,0,0 and not the defined Z orientation of the blueprint. Why is this and how can I change it to orient the spawn area in the rotation desired?
Thanx for your quick reply, however even when using your code it is still not working. The -Random Point In Box- node asks for origin which is the Location of the bounding box but not the rotation of the bounding box. Is there a way to add the forward vector so that it knows where the box is facing?
If I use your code and rotate the bounding box in the world space the spawn area is still oriented to world rotation 0,0,0,. This is very visible when spawning 1000 or more actors. The bounding box (Outlines) is facing in the desired orientation but the spawned actors are oriented as a block (because there are so many actors being spawned) in the ,0,0,0 orientation.
I’m not talking about rotating each individual actor. I want the whole spawn area facing in the right direction. Example. I have a model of a pool facing 35 degrees on the Z axis in world space. I want to fill this pool wit 1000 Balls (Actors). Even though the bounding box is oriented and scaled exactly to fit inside the pool, when spawned some of the balls are in the pool but there are also lots not in the pool. This is because the box extent is oriented to 0,0,0. and not 35 degrees on the z Axis.
I think it must have to do with it NOT being called from the construction script. My suspicion is that the -RANDOM POINT IN BOX- node was meant to only be used in the construction script. (My Code Below)
I also noticed that the SPAWN ACTOR FROM CLASS node doesn’t work in the construction script, so using the construction script in my case is not an option. I also don’t know the location of my ACTOR SPAWNER BP before loading and it is set after the level has been loaded.
I’ve noticed a similar issue when using WORLD ALIGNED TEXTURES MATERIALS. The texture displayed is always oriented to X=0, Y=0, Z=0 and I still haven’t found a way to change the Z Rotation.