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"

How to make characters feet always face an object?

Hello. I'm looking to try and make a small 3d world with its own gravity. I've managed to make my own gravity by applying force but I am having trouble getting my character to rotate to have its feet always on the planet so that the vector going through its body, I guess its UP vector is always pointing UP (away from) from that position on the planet. I've tried doing subtractiong of the planets centre and vector position to get direction but my knowledge of vector maths isn't really that great. Does anyone know how I might accomplish this or what calculations I need to do? Any help greatly appreciated.

alt text

Product Version: Not Selected
Tags:
facing.png (10.3 kB)
more ▼

asked Aug 12 '14 at 02:41 PM in Using UE4

avatar image

dekkuran
8 1 3 5

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

1 answer: sort voted first

Maybe line trace in negativ up direction (down) and set the player Rotation to the hit impact normal by making rot from z(?).

more ▼

answered Aug 12 '14 at 03:08 PM

avatar image

eXi
6.8k 333 185 468

(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