Jump to content

SOLVED: Plane Subdivisions FaceId as a Label?


JackFalcon
 Share

Recommended Posts

grab the vertex data, get the indices and the positions, using the indices get the correct position values and average them then place a label.

I did it with vertices once, Im not sure where that PG is though ill have to dig it up.  To do the faces will be just a extra step but the same process.  Let me see if i can find that PG.


*EDIT*

This will get you there.

Link to comment
Share on other sites

SOLUTION:

image.png.564f63b1036e5b031c9734ab4e2b960b.png

Playground with the full loop....

https://www.babylonjs-playground.com/#G1A0IY

... and some text formatting. :)

 

PURPOSE: these faceIds are the same as a downRay retrieves when moving.

So the index can be keyed in a metaMap which can then trigger metaBehaviors, based on the position of the character.

EXAMPLE: enemies or environment can change behavior depending where you step.

So easily seeing faceID is essential to key metaMap. 

[Happy to post the metaMap architecture as well if asked].

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...