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"

Attach Controller to Actor

Hi I was trying to achieve something like an orbit system for planets and I got down to rotating the planet and moons by having the two as 2 actors, the planet rotates and the moon is Attached to the Planet parent so that it follows the rotation.

Now I have a Spaceship Pawn that uses Control Rotation from the Player Controller to be able to make the spaceship face the camera direction by moving the camera. The problem I face is that I want the Pawn to rotate with the planet surface : I can't seem to 'Attach' the player controller's Control rotation as when I attach the player to the planet, the spaceship mesh rotates with the planet but the camera (Control Rotation) stays still. The Pawn hierarchy goes : StaticMesh (Root) - SpringArm -- Camera And so the SpringArm uses Pawn Control Rotation so I guess my question is ;

Is there a way to attach the planet to my player so that Control Rotation is affected by the rotation of the planet ?

I have tried attaching Player Controller without success.

Thanks you for helping !

Product Version: UE 4.18
Tags:
more ▼

asked Jan 22 '18 at 03:12 PM in Blueprint Scripting

avatar image

Eresea
49 15 21 29

(comments are locked)
10|2000 characters needed characters left

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