Hi,@iforce2d:
I have look the algorithm https://www.iforce2d.net/blog/2013-07-20
The WHITE LINE IS FIXTURE!!
I use the normals and mesh. but have some errors.
Can you please give the code of this algorithm ? Thank you very much!
How to make lineTexture with line fixture?
Re: How to make lineTexture with line fixture?
And if the fixture like this, how to render the mesh ?
Re: How to make lineTexture with line fixture?
I want to render the Right Angle to like this:
Re: How to make lineTexture with line fixture?
This is a very complex topic and not really one for these forums. I have explained it in as much detail as I intend to in the blog post. The source code is also very complex, and it's not mine to give away.
One thing I can comment on though, is that your 'normals' are not correct. They should be exactly in the center of the two main line segments, as I have drawn in green here: Apart from that, it looks like you are doing a good job.
One thing I can comment on though, is that your 'normals' are not correct. They should be exactly in the center of the two main line segments, as I have drawn in green here: Apart from that, it looks like you are doing a good job.
Re: How to make lineTexture with line fixture?
Thank your, sir. what the mean of "in the center of the two main line segments" ? sorry for my poor englishiforce2d wrote:This is a very complex topic and not really one for these forums. I have explained it in as much detail as I intend to in the blog post. The source code is also very complex, and it's not mine to give away.
One thing I can comment on though, is that your 'normals' are not correct. They should be exactly in the center of the two main line segments, as I have drawn in green here: Apart from that, it looks like you are doing a good job.
Re: How to make lineTexture with line fixture?
For each pair of two red lines, the normal should be exactly in the middle. Some of your blue lines are not in the middle.
Re: How to make lineTexture with line fixture?
OK, Thank you.