1 BillboardControl for multiple Spatials?

Is it possible to set one BillboardControl object for multiple Spatials?

If I use cloneForSpatial(Spatial sp) method for for multiple Spatials, nothing happens.



[java]

BillboardControl billboarding = new BillboardControl();

billboarding.setEnabled(true);



for(int i=0;i<texts.length;i++)

{

billboarding.cloneForSpatial(texts); //texts[] is array of BitmapText instances

}

[/java]

What behavior is is that you want?

1 Like

I need each spatial to stay at its position facing towards camera all the time.

Then you need to give each its own BillboardControl. A control can only belong to one spatial at a time.

1 Like