I would like to get the actor shadow like in the Alpha Polaris for instance, where the shadow changes its position relative to the light source.
I have something like that:
var lightpos, lightposX, lightposY,lightposZ;
lightpos = Scene.GetLightPosition("Lamp");
lightposX = lightpos.X - this.PosX;
lightposY = lightpos.Y;
lightposZ = lightpos.Z - this.PosZ;
actor.SetLightPosition(lightposX, lightposY, lightposZ);
What else should I do? Maybe some loop?
Maybe someone could help me with this, please.