Hello,
I am currently thinking about creating a splitscreen Mode for my Game.
The Problem is that a node can not have multiple parents.
So I want to know what is the best way to keep the RootNode of the second Player
synchronized with the RootNode of Player 1 ?
When I just clone the node at the beginning of my game I get about 180 FPS on my Notebook.
When I clone the node in every update the Positions of the Geometries getUpdated but I get just 70-90 FPS.
Ah and another Question if I clone a node containing a spatial with animation will the clone contain the animation ?
I also tried:
public void synchronizeWorld(Node node){
for(int i=0;i<node.getQuantity();i++){
node.getChild(i).setLocalTranslation(worldNode.getChild(i).getLocalTranslation());
node.getChild(i).setLocalRotation(worldNode.getChild(i).getLocalRotation());
}
}
With this code I get about 110 FPS. Is that good for my purpose ? But how do I synchronize the animations then ?
I hope you can understand my Problem,
j4ever