Skip to content

How to rotate a Mesh2d Triangle on it's own center point? #17635

Answered by rmoraes92
rmoraes92 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the reply. Turns out my problem was the values being passed to the Triangle2d in the Mesh2d. The correct way would be to draw the triangle using values adjusted to the origin. That way when we execute the rotation the Mesh will rotate at "his own center".

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rmoraes92
Comment options

Answer selected by rmoraes92
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants