Announcement

Collapse
No announcement yet.

Spawn Emitter at Location

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

  • replied
    IT all makes sense now!!! thank you very much for taking the time to clear that up!!

    Leave a comment:


  • replied
    Sure, the line trace draws a line from the start location to the end location in the world, and returns the Out Hit if/when it hits something.
    Yours is starting at the pawns location in the world, and you want it to trace down to the floor to find what type of surface it is, so you must get a point below your actor, so you minus Z (which is the up/down axis). If you plus on z, you are getting a point above your actor/pawn.

    Leave a comment:


  • replied
    Thank you so much that was the problem, you are a life saver. DO you mind explaining why that issue of switching form a '+' to a "-" fixed the Hit issue. Still learning UE4 so any information is great , thanks again for helping me out much appreciated

    Leave a comment:


  • replied
    The plus node after get actor location should be a minus, should work then

    Leave a comment:


  • replied
    Hey thanks for the help I learnt a lot, I took your BP and got a couple or errors:
    Error This blueprint (self) is not a Character, therefore ' Target ' must have a connection.
    Error Variable node Get Mesh uses an invalid target. It may depend on a node that is not connected to the execution chain, and got purged.
    Click image for larger version

Name:	Error.PNG
Views:	1
Size:	97.2 KB
ID:	1092736

    SO I changed the execute path and that fixed the errors:
    Click image for larger version

Name:	NoError.PNG
Views:	1
Size:	96.0 KB
ID:	1092737

    Now the particle effects spawns at the characters feet but only the default value. I re-attached the physical materials on my Grass and Dirt textures and still for some reason the "Hit" is not registering the different material. Here is the full AnimBP, I'm at a bit of a loss as to how to fix the "Hit"
    Click image for larger version

Name:	Full.PNG
Views:	1
Size:	226.3 KB
ID:	1092738

    Leave a comment:


  • replied
    Your trace is wrong, you are tracing for 0,0,0 in the world, to you pawn's location. You need to trace from your pawn's location, to a point below your pawn.

    I'm not sure if you want the effect to be attached to the foot or not, it doesn't look like it from you screenshot.
    The below will work if not, and will spawn an emitter that follows your pawn. You can add a component in your character bp, where you want to effect to spawn, I just used mesh because it makes it spawn at the feet. If you want it to be attached to the individual feet, it will be a bit different, you will need to add sockets you your skeletons feet first.

    Click image for larger version

Name:	7nHsjoz.png
Views:	1
Size:	181.7 KB
ID:	1092718

    Obviously, you shouldn't use that method with a looping emitter, but just as an example:



    edit: Actually you may have wanted something like this, spawns on emitter at the foots location, but doesn't attach. You will need to add sockets to the feet:
    Click image for larger version

Name:	OUqwJ3g.png
Views:	1
Size:	242.1 KB
ID:	1092719
    Last edited by Mosel3y; 11-06-2015, 07:38 AM.

    Leave a comment:


  • started a topic Spawn Emitter at Location

    Spawn Emitter at Location

    I am currently trying to get a particle effect to spawn when the character hits a surface, depending on the surface a different particle effect is chosen. I have included a picture of my BP for my character Animation. Currently the particle effect spawns but only in one place and does not follow the character as it moves. I have followed and looked at many threads and videos already to get to this point, any help would be greatly appreciated, I am using UE4 4.9.2, thank you.

    Click image for larger version

Name:	Emitter.png
Views:	1
Size:	352.1 KB
ID:	1166443
Working...
X