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"

Math problem / Rotation Bug

I have a problem with a static mesh and a socket not being where where I expect it to be. I have a mesh and in the editor I added a socket to it. And added it to the relative location of (X = 0, Y = 300, Z = 0). Now the actor I have the Static Mesh as the root component.

When I change the rotation of the mesh I expect the socket to be at the same location relative to the mesh and its rotation.

What am currently doing is this.

 SocketLocation = FTransform(TransformOfTheActor.GetRotation().Rotator() + MeshSocket->RelativeRotation, FVector(TransformOfTheActor.GetLocation() + MeshSocket->RelativeLocation));

Am no math wizard, as you can see.

But here is a illustration of what am trying to do.

alt text

Thank you for any help.


Product Version: UE 4.9
ilustrate.png (6.4 kB)
more ▼

asked Oct 09 '15 at 09:37 AM in Using UE4

avatar image

508 43 44 73

(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