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"

Particle not spawning from the correct location when moving.

I am having a problem when I try to spawn a shell from a gun the player is holding. The particle itself is a single burst of a shell mesh being flung up and to the right of the gun. There is a constant downward acceleration and it inherits the parent velocity. The particle does not use Local Space and the Initial Velocity and Inherit Parent Velocity are not in world space. The particle is being spawned by having a Particle System component be the child of the gun mesh (while not being attached to any sockets), and then activated via an "activate" node in blueprints.

It works fine and spawns at the correct location when the player is standing still, however when the player moves rather than spawning from the chamber of the gun the particle spawns in front of where the player is moving to. For example if the character is moving forward the particle will spawn in front of the gun, moving to the right and the particle will spawn to the right of the gun, and so on.

Using Local Space fixes the problem of spawn location, but because the gun itself is moving around quite a bit the particle will jiggle around with the gun rather than just follow a smooth arc.

Removing Inherit Parent Velocity also fixes the problem of spawn location, but now when the player moves to the right the shell (from the point of view of the player) ejects to the left, and whey they move to the left the particle ejects to the right way too fast.

Product Version: UE 4.10
Tags:
more ▼

asked May 10 '16 at 01:20 AM in Using UE4

avatar image

zhegames
15 2 6 7

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

0 answers: sort voted first
Be the first one to answer this question
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