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"

Projectile spawn drags with velocity

Greetings! I have been trying to solve a problem with a spaceship and when I spawn a projectile, it lags my projectile spawn behind when velocity increases. At first I thought this had to do with velocity inheritance (it may still do) but now I'm not so sure, because both the projectile and the muzzle flash emitter lag. The ship (is using physics simulation with thrusters) spawns and attaches its turret on BeginPlay, and then the turret spawns a projectile on fire. The projectile is a simple sphere collision with a particle system. Please take a look at these pics:

alt text

alt text ParentMesh is a reference to the ship mesh component on the ship bp.

alt text

Product Version: UE 4.11
Tags:
more ▼

asked Apr 24 '16 at 07:49 PM in Blueprint Scripting

avatar image

xeoncat
91 1 5 10

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

2 answers: sort voted first

I solved this, I think. In Cascade, the particle emitters have to be marked Use Local Space in the Required module. But the projectile speed itself seems to be calculated correctly

more ▼

answered Apr 27 '16 at 09:22 PM

avatar image

xeoncat
91 1 5 10

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

The projectile will need to be faster than the ship or you can indeed overtake the projectile. Adding to the "inherited" velocity is probably the way to go as a missile would have a fixed speed leaving the cannon.

Make sure you remove friction on your projectile since you're in space, the projectile should not slow down of its own velocity.

more ▼

answered Apr 25 '16 at 12:10 AM

avatar image

keyle
1.8k 66 27 90

avatar image xeoncat Apr 25 '16 at 01:35 PM

The thing is, I just used the Spawn Emitter Attached node for the muzzle flash and attached it to the socket of the turret's barrel, and it still spawns away from the socket when my velocity is not zero.

(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