removeFromParent method

Object3D removeFromParent()

Removes this object from its current parent.

Implementation

Object3D removeFromParent() {
  final parent = this.parent;

  if (parent != null) {
    parent.remove(this);
  }

  return this;
}