Skip to main content

HandOnSideStructure

A class in Root.Township, the global namespace.

Skill input asset that is active when the hands holding the item are level with the head and out to the side or behind it.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private float maxHeightDifferenceFromHeadLargest vertical gap allowed between the hands and the head.
private float minAngleFromForwardDot product limit against the head's flat forward; the hands' direction must be below it.
private float minHorizontalDistanceFromHeadSquared minimum horizontal distance between the hands and the head.

Methods​

MemberWhat it is
protected override bool IsInPositionInternal(HeldPickupHandler handler)True when the average hand position is within the height limit, far enough from the head, and outside the forward angle.