Skip to main content

HandToHeartInputStructure

A class in Root.Township, the global namespace.

Skill input asset that is active when a hand holding the item is close to the player's heart.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private Vector3 fromBodyPivotToHeartOffset from the body target to the heart, in the body's rotation.
private float maxDistanceToHeartSquaredSquared distance from the heart that counts as in position.

Methods​

MemberWhat it is
protected override bool IsInPositionInternal(HeldPickupHandler handler)True when the nearest holding hand is within range of the heart point on the body target.