You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use the chamfer function to round the corners of the rectangles.
I have several problems when I try to use it.
My code :
Issues:
Cannot find the console option chamfer when displaying my base object. plinkos_data_2.options are no displayed the chamfer from my basic object in console. And the rectangles created with plinkos_data_2.options have chamfer = null. (But in second part, chamfer is applied... WUT)
The option applied to the first element created with the previous options, but only to the first.
I’m trying to understand how the chamfer option works, but can't reach it, and I can’t find any help in the documentation.
Thank you.
YoNeXia.
The text was updated successfully, but these errors were encountered:
That's right chamfer is only a special one-time pre-processing option of Matter.Bodies rather than a body property.
This isn't well documented so sorry about that - it's one of the oldest parts of the project that I'd love to move to a plugin or example when I get chance.
You can use Vertices.chamfer if you want to apply this in a custom way, but you will probably want to keep a copy of the original input.
Hello,
I want to use the chamfer function to round the corners of the rectangles.
I have several problems when I try to use it.
My code :
Issues:
Cannot find the console option chamfer when displaying my base object.
plinkos_data_2.options
are no displayed the chamfer from my basic object in console. And the rectangles created withplinkos_data_2.options
have chamfer = null. (But in second part, chamfer is applied... WUT)The option applied to the first element created with the previous options, but only to the first.
I’m trying to understand how the chamfer option works, but can't reach it, and I can’t find any help in the documentation.
Thank you.
YoNeXia.
The text was updated successfully, but these errors were encountered: