Jump to content

Difficults to scale a line inside a foreach primitive


Noctis27

Recommended Posts

I'm trying to do like a road for a game in a procedural way (using a curve etc), but when I apply the line into the curve, sometimes there are lines that don't have the correct size, so in order to fix that I'm trying to scale the lines that are lower than 90% of the real size and scale to achieve the real factor. To do this, I multiply the point direction normal with the scale, cause I saw that that is the right way to achieve what i want, but when I apply that, the line is scaled like 100 times bigger and displaced, the points didn't stay where they were, like in his normal.

 

(points 16-17 are the problematics)

 

thanks for all.

Captura_de_pantalla_2020-02-06_a_las_20_44_38.png

Captura_de_pantalla_2020-02-06_a_las_20_44_51.png

Link to comment
Share on other sites

  • 4 weeks later...

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.

×
×
  • Create New...