Skip to content

TyraX 2.9.0

Choose a tag to compare

@github-actions github-actions released this 03 Nov 22:34
7b1e597
  • 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.

Full changelog