Skip to main content

Facing3DSense

A class in Root.Township, Alta.Intelligence.

Sense asset giving how much the creature faces a target in 3D: 1 straight ahead, -1 behind.

Constructors​

MemberWhat it is
Facing3DSense()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 forward and the direction to the target, height included.