resolveMeleeHits
resolveMeleeHits(
world,attacks,queries,events,damage):void
Defined in: gameplay/MeleeAttack.ts:183
Turn the animation events an attacker posted into blows.
Runs on LAST frame’s events, before this frame’s animator poses anything: the joints still hold the pose that produced the event, so the swing is asked about the space it was actually in.
Parameters
Section titled “Parameters”attacks
Section titled “attacks”queries
Section titled “queries”MeleeOverlapQuery | null
events
Section titled “events”Iterable<AnimatorEventPayload>
damage
Section titled “damage”Returns
Section titled “Returns”void