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"

spawn projectile in the midle of the screen

Hello everyone ,

i have created a weaponin blueprint and i set the projectile to be span in the middle of the screen , so i've used the "get controller rotation" node for it

here is the character BPalt text

the result is that it' doesn't spawn right in the midle i will post a pict later and thnx

Product Version: Not Selected
Tags:
capture.png (182.1 kB)
more ▼

asked Sep 07 '14 at 07:38 PM in Blueprint Scripting

avatar image

Amiot
43 6 9 16

avatar image Amiot Sep 07 '14 at 08:45 PM

here is the resul , as you can see the impact of the bulet is not perfectly in the center . ![alt text][1]

https://www.dropbox.com/s/jckf3zx5o2islc4/impact.jpg?dl=0

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

1 answer: sort voted first

The rotation is not the issue. You are spawning it at the socket location. With the camera rotation it will fly straight towards where the camera looks so it will have the offset your socket has in relation to the camera.

What you could do is get a trace from the camera, get the hitlocation, get the rotation from that location and your socket and use it. (It's really easy to do that. There is a "look at" node which takes two locations and provides the rotation).

Or you could put the weapon in the middle having that very slight offset to the bottom with which one could live. Especially if you enable a small gravity effect from the projectile movement component.

more ▼

answered Sep 08 '14 at 12:36 PM

avatar image

Erasio
5.9k 291 86 293

(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