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 velocity relative to world

I have a projectile with tracers that generally work well when I am firing the gun from a stationary position. But my guns are attached to a large aircraft moving about 400 miles per hour +X. When I shoot the guns in the front or rear of the plane it looks fine. But when I use one of the side mounted guns, the bullets don't look right. Because I'm moving so fast in +X, the bullets shoot out and then just wiz by left or right depending which way I'm facing in Y. I suppose that's accurate in reality, but it's looking a bit over exaggerated in UE4. So I figured I could compensate by just increasing the velocity, which only works when I crank up the settings insanely high. The bullets are more controllable but they move so fast I can't see the tracer, and my bullet drop isn't noticeable any more either. Has anyone had experience dealing with these kinds of issues?

Product Version: UE 4.19
more ▼

asked Oct 07 '18 at 01:16 AM in Using UE4

avatar image

10 2 8

avatar image ThompsonN13 Oct 07 '18 at 02:29 AM

how about just adding velocity to the bullet in the direction that the plane is moving and depending on its speed. off the top of my head that would require a reference to the plane, get the planes forward vector, inverse transform to the bullets space, get planes velocity , and add the needed values to the bullets velocity. this is all just speculation as i havent tried it myself.

avatar image live4film Oct 07 '18 at 07:28 AM

I just tried your suggestion, it helped a lot, thanks! However my tracer is so long that at certain angles it looks as if the actual tracer glow shape isn't facing the direction of the projectile. It follows it in place, but is oriented in one axis the whole time, similar to how a sprite always is oriented to the player. I'll keep messing with it. I may need to get the forward vector of the actual projectile too and input that into the tracer.

avatar image ThompsonN13 Oct 07 '18 at 02:19 PM

i have no idea what your attempting to say. try using a visual to show the issue.

(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