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"

Set new origin/pivot point/reference location for ProceduralMeshComponent (child) door

Hi,

I'm using an Actor to import an .Obj file. I have ProceduralMeshComponents (childs) of this actor that I would like to use as doors. How can I set a new rotation/pivotpoint/reference location in c++ so that my ProceduralMeshComponent rotates around my 'new pivot point'? My doors now rotate around the origin/pivot point of the Actor.

I'm not looking for a solution in the viewport since there is nothing in the viewport. I'm also not looking to add the origin/pivot point for each door in a 3D program since it is exported as a whole.

So I have to be able to set a new reference point for the proceduralMeshComponent for rotating, without the ProceduralMeshComponent to change location, because it does spawn on the right location. The rotation reference is just wrong.

Thanks in advance

Product Version: UE 4.18
Tags:
more ▼

asked Dec 12 '17 at 12:53 PM in C++ Programming

avatar image

VlecadGS
51 5 12 21

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

1 answer: sort voted first

It has been a while but I found how to set an origin. I created an actor, made my "myproceduralmesh" child of an actor. Then added a "Movement Component" to that actor. Apperently the "Movement Component" has a pivot point. That let me to my final solution of rotating the mesh.

more ▼

answered Jan 22 '18 at 09:26 AM

avatar image

VlecadGS
51 5 12 21

(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