Vixen
02b45cc4
csharp
public interface ICameraOcclusion

What the engine asks when a shot wants to know whether it can see its subject.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

The seam CameraOcclusion is built on, and the only thing the camera system needs to know about a world's solidity. A Vixen.Physics-backed implementation is four lines over a sphere cast; a game with simpler geometry can do better than that.

Methods (1)

  • bool Occluded(Vector3 subject, Vector3 desired, float radius, out Vector3 hit)

    Whether the way from a target to a camera is blocked.

Used by (3)

  • ArenaCameraOcclusionThirdPersonShooter
  • VirtualCameraSystemVixen.Engine
  • WallVixen.Engine.Tests