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"

Spawning Decal Rotation

I am wondering if I am able to spawn a decal and be able to rotate so it spawns flat on any surface instead of being rotated sideways where ever it hits. So hits a wall = vertical, hits the ground = horizontal. Its a projectile with event hit. alt text

Product Version: Not Selected
untitled.jpg (102.2 kB)
more ▼

asked Apr 28 '15 at 09:44 PM in Blueprint Scripting

avatar image

295 21 20 26

avatar image Gunnar0 May 20 '15 at 02:39 AM

You could also think of this as the UT Bio-Rifle which spawns a decal exactly the way i want to spawn it.

avatar image Narghile May 20 '15 at 02:46 AM

Hi Mate

This is how you would add Relative location straight after spawn, just example.

alt text

What I would do, is promote to Variable, after hit run a time line and add relative location.

Might look like this

alt text

alt text


alt text

capture.jpg (44.4 kB)
capture.jpg (35.5 kB)
capture.jpg (42.7 kB)
1.jpg (10.9 kB)
avatar image Gunnar0 May 20 '15 at 12:11 PM

I didn't get those delta rotation inputs on mine.alt text

untitled.jpg (69.4 kB)
avatar image Gunnar0 Jun 01 '15 at 12:11 AM

Hey Narg I haven't heard from you in a while. I would still like to know some more info.

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

2 answers: sort voted first

Hi Gunnar0.

I was looking to do the same thing and found this: Projectile decal

It was exactly what I was looking for. Here is the full article. Hope this helps!

more ▼

answered Nov 24 '15 at 12:40 PM

avatar image

136 3 9 17

avatar image Gunnar0 Feb 04 '16 at 10:43 PM

I'm responding kind of late, hadn't been putting much work into the decal rotation. But this was definitely the answer to my question.

Thank you!

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

I'm responding even later but I think that while this is very close to being right, it is wrong in the sense that the behavior is placed in the wrong hands. In the above, the projectile OnHit event is given the side effect of spawning the bullet hole decal (and destroying itself). This is wrong for several reasons:

1) Only the actor taking the hit knows what kind of decal to spawn. Different actors/materials would look differently when struck. 2) Its likely that you would want the spawned decal to stick (weld?) to the actor that received the hit so if there was subsequent movement it would keep its relative position. Think of a moving target or human falling to ground.

i.e. I think the behavior should be on the OnHit event of the other actor in the collision.

more ▼

answered Aug 08 '16 at 03:08 PM

avatar image

Greg G
1 1

avatar image Gunnar0 Aug 08 '16 at 03:13 PM

Oh definitely, but i haven't really focused on those two things when I have worked. I've known about them just didn't get around to them

avatar image 0vr Jan 21 '18 at 06:56 PM

So you're saying to make every wall and floor an actor? Would that eat into memory? I'd assume it's more costly to make everything a BP actor than if they were just static meshes.

avatar image HeidisDaddyDemon Oct 23 '18 at 07:22 AM

This would not be practical, I think the best option for the decal material would be to use something that is already returned by hit result: Phys Mat. That gives you the exact type of material that was hit.

(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