Skip to content

Creating a group of objects #407

Answered by asny
guija asked this question in Q&A
Oct 20, 2023 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Hi. I'll try to explain each concept, but overall, I think you should just create your own struct that does exactly what your want and inside that use two Gms, one for the small sphere and one for the big sphere.

  • Geometry - Some kind of geometry, for example a triangle Mesh, InstancedMesh, ParticleSystem, Circle, Rectangle, Sprites etc. You can also create a geometry yourself by implementing the Geometry trait.
  • Material - Some kind of material, for example PhysicalMaterial, ColorMaterial etc. Again, you can also implement your own material by implementing the Material trait.
  • Gm - A combination of any type of Geometry + Material <-- this can be rendered

These are the main concepts, so th…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by guija
Comment options

You must be logged in to vote
2 replies
@asny
Comment options

asny Oct 24, 2023
Maintainer

@guija
Comment options

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