Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an example where you can build a custom Polygon #9

Open
Myrmod opened this issue Mar 22, 2022 · 0 comments
Open

Create an example where you can build a custom Polygon #9

Myrmod opened this issue Mar 22, 2022 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@Myrmod
Copy link
Owner

Myrmod commented Mar 22, 2022

I find it quite difficult to build a <Polygon> with this code:

<Polygon
  options={{
    shape: [
      new BABYLON.Vector3(2, 0, -2),
      new BABYLON.Vector3(2, 0, 0),
      new BABYLON.Vector3(3, 0, 2),
      new BABYLON.Vector3(1, 0, 2),
      new BABYLON.Vector3(-3, 0, 3),
      new BABYLON.Vector3(-3, 0, 1),
      new BABYLON.Vector3(-2, 0, -2),
      new BABYLON.Vector3(-2, 0, -3),
      new BABYLON.Vector3(2, 0, -3),
    ],
    depth: 1,
  }}
/>

So I would like an example where using it is possible to create a custom polygon on the fly.

@Myrmod Myrmod added the documentation Improvements or additions to documentation label Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant