You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
tyrax::raycastCamera. A script raycast that always starts at the active camera: a cutscene's or setCamera's eye while one owns the view, the player's camera (first-person eye, third-person boom) otherwise. Aim it at a point or an object; by default it stops at the target, so hit tells you something solid stands between the camera and it, and hit.object == target that the camera sees the object first. tyrax::cameraPosition(ctx) returns that origin. See docs/script-api.md.