ti.ui.Camera.track_user_inputs
without mouse movement will revert front vector when it is (0, 0, 1)
#6653
Labels
ti.ui.Camera.track_user_inputs
without mouse movement will revert front vector when it is (0, 0, 1)
#6653
And this is the default value of front vector(postion=(0,0,0), lookat=(0,0,1))
I don't know why
yaw = 0
whenabs(sin_yaw) < eps
.I think using
yaw = atan2(-v[0], -v[2])
can fix this problem. and simplify the code.The text was updated successfully, but these errors were encountered: