Inverting rotation in 3D, to make an object always face the camera?

前端 未结 4 912
暗喜
暗喜 2020-12-01 03:49

i have lots of sprites arranged in 3D space, and their parent container has rotations applied. How do i reverse the sprites 3D rotation, that they always face the camera (Ac

4条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-01 04:28

    Apologies in advance for this being a suggestion, not a solution:

    If your intent is simulate 3D spherical rotations, your easiest route would be to forego the 2.5D API and just use simple scaling and sin/cos calculations for the positioning.

    A fun place to start: http://www.reflektions.com/miniml/template_permalink.asp?id=329

提交回复
热议问题