Skip to main content

Facing2DSense

A class in Root.Township, Alta.Intelligence.

Sense asset giving how much the creature faces a target on the flat: 1 straight ahead, 0 to the side, -1 behind.

Constructors​

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

Methods​

MemberWhat it is
override float Get(IAgent requester, ITarget target)Dot product of the creature's flat forward and the flat direction to the target.