havin a problem trying to change between shpere to a cone
what methods, classes do i have to use to accomplish this
is it possible
anything possible in java right
sample of my code
//////////////////////////////
tg.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
tg.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
tg.setCapability(Group.ALLOW_CHILDREN_EXTEND );
objTrans.addChild(tg);
app = createAppearance();
objTrans.addChild(createObject(app, 0.1));
///////////////////////////////
createObject(){
TransformGroup spinTg = new TransformGroup();
spinTg.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
spinTg.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
spinTg.setCapability(TransformGroup.ENABLE_PICK_REPORTING);
Primitive obj = null;
obj = (Primitive) new Box(2.0f,2.0f,2.0f,app);
.
.
.
}
/////////////////////////////////////////
then using Menubar to change between the object
like the example in APi–TextureAttributes example
can anybody help please