BranchGroup makeTheRobot(){
BranchGroup base = new BranchGroup();
// appearance platform
Appearance appP = new Appearance();
Material matP = new Material();
matP.setEmissiveColor(0, 0, 0);
//matP.setEmissiveColor(0.8f,0.8f,0.8f);
appP.setMaterial(matP);
//platform
Transform3D trPlat = new Transform3D();
Vector3f vPlat = new Vector3f(0f,4.5f,0f);
trPlat.set(vPlat);
TransformGroup tgPlat = new TransformGroup(trPlat);
tgPlat.addChild(new Box(3f,0.15f,3f,appP));
//leg1
Transform3D trleg1 = new Transform3D();
Vector3f vLeg1 = new Vector3f(2f,3.5f,2f);
trleg1.set(vLeg1);
TransformGroup tgLeg1 = new TransformGroup(trleg1);
tgLeg1.addChild(aLeg(0,30));
//leg2
Transform3D trleg2 = new Transform3D();
Vector3f vLeg2 = new Vector3f(2f,3.5f,-2f);
trleg2.set(vLeg2);
TransformGroup tgLeg2 = new TransformGroup(trleg2);
tgLeg2.addChild(aLeg(0,70));
//leg3
Transform3D trleg3 = new Transform3D();
Vector3f vLeg3 = new Vector3f(-2f,3.5f,2f);
trleg3.set(vLeg3);
TransformGroup tgLeg3 = new TransformGroup(trleg3);
tgLeg3.addChild(aLeg(0,30));
//leg4
Transform3D trleg4 = new Transform3D();
Vector3f vLeg4 = new Vector3f(-2f,3.5f,-2f);
trleg4.set(vLeg4);
TransformGroup tgLeg4 = new TransformGroup(trleg4);
tgLeg4.addChild(aLeg(-30,30));
base.addChild(tgPlat);
base.addChild(tgLeg1);
base.addChild(tgLeg2);
base.addChild(tgLeg3);
base.addChild(tgLeg4);
//obstacol
// appearance platform
Appearance appObs = new Appearance();
Material matObs = new Material();
matObs.setEmissiveColor(0.9f,0.9f,0.0f);
appObs.setMaterial(matObs);
/*
Transform3D trObs = new Transform3D();
Vector3f vObs = new Vector3f(0f,0.6f,-3.5f);
trObs.set(vObs);