// OWL issue #237 - regardless of the current state, send the
// animation that is currently set in CycleActionState. This
// is consistent with the behavior of
// WlAvatarContext.setMiscAnimation() used in the trigger()
// method below
CycleActionState cas = (CycleActionState)
avatarCharacter.getContext().getState(CycleActionState.class);
if (cas != null) {
animationName = cas.getAnimationName();
}
float height = avatarCharacter.getController().getHeight();
boolean collision = avatarCharacter.getController().isColliding();