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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Rotate Mesh Around Point in C++

Hello,

I am looking to use C++ code to make an effect where the character mesh from the third-person template is flipping around its own center of mass. However, the pivot point is at its feet, and I would like to rotate around an arbitrary point. I have looked at other answers regarding rotating around arbitrary pivot points and am still confused on how to implement such a thing.

Product Version: Not Selected
Tags:
more ▼

asked Jan 23 '15 at 03:30 PM in C++ Programming

avatar image

Videodrome18
10 3 5 8

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

2 answers: sort voted first

Try this code

 URotatingMovementComponent* RotatingMovement = ObjectInitializer.CreateDefaultSubobject(this, TEXT("RotatingMovement"));
  RotatingMovement->RotationRate = FRotator(0, 80, 0); 
  RotatingMovement->PivotTranslation = FVector(0, -180, 0); 

more ▼

answered Apr 20 '15 at 05:39 PM

avatar image

Syntopia
222 22 27 45

avatar image VlecadGS Jan 22 '18 at 01:51 PM

What do you have to include to be able to use this code?

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

it's very easy to use transforms. this code is easily translated into C ++

http://image.prntscr.com/image/19b939c720ab44c18b33659657e648a7.jpeg http://i.imgur.com/WsBqPzq.gif

more ▼

answered Jan 24 '18 at 07:51 PM

avatar image

Sn_a_ke
142 9 16 20

(comments are locked)
10|2000 characters needed characters left
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