tzachshabtay / MonoAGS

AGS (Adventure Game Studio) reimagined in Mono
https://tzachshabtay.github.io/MonoAGS/
Artistic License 2.0
27 stars 8 forks source link

Fix matching areas didn't use world position #276

Closed tzachshabtay closed 6 years ago

tzachshabtay commented 6 years ago
  1. Created world position component that allows getting the world position (as opposed to the local position).
  2. Used that component in several places to use world position and not local position.
  3. Added a target position property to the built in camera to allow control over which point in the target itself the camera should focus on.
  4. Refactoring- renamed hit-test bounding box and render bounding box to world bounding box and viewport bounding box. Added a property for getting the world bounding box which doesn't require passing in the viewport.

Fixes #271