|
|
@@ -205,8 +205,8 @@ public class BillboardControl extends AbstractControl {
|
|
|
// the camera. To do this, the camera must be inverse-transformed into
|
|
|
// the model space of the billboard.
|
|
|
look.set(camera.getLocation()).subtractLocal(
|
|
|
- spatial.getWorldTranslation());
|
|
|
- spatial.getWorldRotation().mult(look, left); // coopt left for our own
|
|
|
+ spatial.getWorldTranslation());
|
|
|
+ spatial.getParent().getWorldRotation().mult(look, left); // coopt left for our own
|
|
|
// purposes.
|
|
|
left.x *= 1.0f / spatial.getWorldScale().x;
|
|
|
left.y *= 1.0f / spatial.getWorldScale().y;
|