syncWeaponAnimation method

void syncWeaponAnimation()

Implementation

void syncWeaponAnimation() {
	final clip = activeClip;

	if (meshWeapon != null) {
		meshWeapon?.activeAction?.stop();
		meshWeapon?.activeAction = null;

		final action = mixer?.clipAction( clip, meshWeapon );

		if ( action != null) {
			meshWeapon?.activeAction = action.syncWith( meshBody!.activeAction! ).play();
		}
	}
}