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"

Possible to access mesh face positions?

I'm trying to positions objects about the face of a mesh at runtime, but I can't find any ways to access faces. I know how to get vertices but can't seem to do faces. I was thinking that the face index from a raycast might do something, but I'm not sure.

Product Version: UE 4.14
Tags:
more ▼

asked Jan 05 '17 at 02:36 AM in C++ Programming

avatar image

Jet0610
41 1 6 7

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

1 answer: sort voted first

I don't think face position is even a thing. Faces are defined by their vertices, so you can only get the position of the vertices that conform it and the normal of said face. To get the "face position" you would need to calculate the "center" of the face which can be troublesome depending on the geometry, also, remember that faces are deformed when being animated so you would need to be constantly calculating a value that is ultimately unnecessary. Vertex is love, vertex is life.

If you are doing a raycast then you can get the point of impact, which I think should be enough for you to positionate your objects.

more ▼

answered Jan 05 '17 at 05:34 AM

avatar image

Rekenq
712 18 6 25

(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