Sp3dFragment constructor

Sp3dFragment(
  1. List<Sp3dFace> faces, {
  2. bool isParticle = false,
  3. double r = 0,
  4. Sp3dPhysics? physics,
  5. bool isTouchable = true,
  6. String? name,
  7. Map<String, dynamic>? option,
})

Constructor

  • faces : Face Object list. This includes vertex information.
  • isParticle : If true, this is particle.
  • r : Particle radius.
  • physics : Parameters for physics calculations. This defines the behavior of the fragment, not the entire object.
  • isTouchable : If false, rendered this fragment will be excluded from touche calculation. Default value is true.
  • name : The fragment name.
  • option : Optional attributes that may be added for each app.

Implementation

Sp3dFragment(this.faces,
    {this.isParticle = false,
    this.r = 0,
    this.physics,
    this.isTouchable = true,
    this.name,
    this.option});