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"

PlayerStart orientation does not match meshs' Forward direction

In my scene I have a mesh (a ship) which points forwards along the X axis. When adding a PlayerStart component to my scene and defining its orientation, the PlayerStart points along the Y axis.

When I now start the game my camera will look in the desired direction specified by the PlayerStarts orientation. But the ship will look at the X axis.

alt text

In my mesh viewport the ship is looking along the X axis and the camera is looking at the ship from behind.

alt text

As mentioned above the PlayerStart points along the Y axis.

alt text

The result in game looks like that.

How can I make the ship also looking in the orientation of the PlayerStart? I need change the orientation in the mesh viewport? I would be reluctant to do. How can I match the meshs' forward direction with the PlayerStarts' orientation in the editor?

Thanks in advance.

Product Version: UE 4.8
more ▼

asked Aug 24 '15 at 11:15 PM in Blueprint Scripting

avatar image

1 4 4

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

1 answer: sort voted first

You need to make sure the Mesh in your view port is facing down the BLUE Arrow. That is where the forward orientation will be.

Try that out. =)

more ▼

answered Aug 24 '15 at 11:20 PM

avatar image

2.3k 114 62 234

avatar image NuKeR2k Aug 24 '15 at 11:42 PM

Thanks for your answer. If I rotate my mesh 90° around Z it will work. But then my rotation calculation goes wrong. Is it not best practice to let the mesh pointing to the X-axis (forward) in the viewport?

avatar image Devero Aug 24 '15 at 11:48 PM

The blue arrow should be facing down the X axis. Are you sure you don't have your Gizmo turned onto local space instead of world space? Thats a common problem. In your upper right of your viewport, you should see a Earth for world space or a Box for local space.

avatar image NuKeR2k Aug 24 '15 at 11:56 PM

Ah ok. I see the icon. But it's a little bit confusing. If the world-icon is shown: is it means that I am currently in world-mode or is it mean "switch to world mode"?

avatar image Devero Aug 25 '15 at 12:00 AM

The icon you see is what mode you are in. If you see the Earth, your in World space =)

avatar image NuKeR2k Aug 25 '15 at 12:06 AM

ok, thanks :) but what do you exactly mean with "the blue arrow should facing down the x axis"? Like this: http://imgur.com/qTdtFK9 ? But this only works in local space. If I rotate in world space, the Z-Arrow always points upwards. If I do this rotation you see in the image my ship will also be rotated downwards in game.

avatar image NuKeR2k Aug 25 '15 at 12:12 AM

Whereas this rotation (in local) would solve my issue: http://imgur.com/0wgXLGJ

avatar image Devero Aug 25 '15 at 12:32 AM

Sorry for the confusion, I was referencing the Big blue arrow(not the gizmo) that was on your capsule component in your player start pic

avatar image NuKeR2k Aug 25 '15 at 12:37 AM

Ahh now. Sure :) Everything's working fine. It's already too late.. Should go to bed :) Thanks for your help!

(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