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"

Local offset and world offset not working as expected

I'm trying to create bullets that move on the surface of a sphere, but the AddActorLocalOffset and AddActorWorldOffset are not working as expected.

Here's a screenshot of a bullet: alt text

The pink arrow is the actor's forward vector while the green arrow is the world forward.

In blueprints, I try to move the bullet using AddActorLocalOffset, like this

alt text

I'm multiplying the actor's forward vector by the bullet speed and then by the delta seconds and using the result as delta location.

When doing this, the bullet moves in a direction which is neither along the pink line or the green line. When using AddActorWorldOffset instead, the bullet moves along the pink line, which is the LOCAL forward, not the world. I'm quite confused about this and I know that it's probably hard to figure out from a couple of screenshots.

Any idea?

Product Version: UE 4.15
more ▼

asked May 20 '17 at 12:18 PM in Blueprint Scripting

avatar image

1 1 2 5

(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