Skip to main content

ViewConeSense

A class in Root.Township, Alta.Intelligence.

Sense asset giving where a target sits in the creature's view cone. The creature must implement IHasViewCone.

Constructors​

MemberWhat it is
ViewConeSense()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Methods​

MemberWhat it is
override float Get(IAgent requester, ITarget target)The view cone ratio for the target's position, as ViewCone.Contains reports it.