three.js - Remove a group from scene -


I am using three.js, and I have created a group and inside another group

  pgrupo = new array (); Fgrupo = new array (); Scene.add (pgrupo [0]) pgrupo [0] .add (fgrupo [0]): pgrupo [0] .add (fgrupo [1]):   

How can I remove Am I a FGP from the scene?

If I use it:

  scene.remove (fgrupo [0]);   

or

  scene.remove (pgrupo [0]);   

Nothing happened How can I remove these things from this view?

Instead of using arrays and more. () And .remove () methods.

Then

  pgrupo = new THREE.Object3D (); Fgrupo = = New three. Object 3D (); Scene.add (pgrupo);   

Also the method. The child gives you an array with the object's children.

Comments

Popular posts from this blog

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

java - Projects which are accessed via multiple (different) IDEs: Ant or Maven? -