Hi Im trying to detach model which I attach model with other model but once I do this
PreviousChild.remove(NextParent);
it remove the model but also remove from the scene as well. Need help thanks
Hi Im trying to detach model which I attach model with other model but once I do this
PreviousChild.remove(NextParent);
it remove the model but also remove from the scene as well. Need help thanks
PreviousChild.remove(NextParent);
scene.add(NextParent);
or
PreviousChild.remove(NextParent);
scene.add(PreviousChild);
thanks for the quick reply the remove model is nextParent not previousChild but if i do this then model remove from scene as well
got it thanks
Would you mind sharing a piece of your code?
It seems that the NextParent is bind to the PreviousChild like
PreviousChild.add(NextParent)
You could possibly try PreviousChild.removeChild(NextParent)