Thank you for the advise, I will watch the video, I hope it's not too hard 😆
Actually :
- for static object I draw shadow on a surface and I create a sprite based on the surface. So I have to calculate one time shadow so it is very fast. I calculate shadow just if the position of the sun change
- but for dynamique object, I draw shadow on a surface for each step, and it's not very fast. I think it can be better to calculate the shadow only if the state of the object change