331 case ACT_SEQ_TRIGGER_MOTION:
347 case ACT_SEQ_TRIGGER_ANIMATION:
352 case ACT_SEQ_SET_POSITION:
358 case ACT_SEQ_SET_ROTATION:
365 case ACT_SEQ_ROTATE_REFERENCE:
371 case ACT_SEQ_ROTATE_ANGLE:
377 case ACT_SEQ_DELAY_ROTATION:
381 case ACT_SEQ_ROTATE_MOVEMENT:
387 case ACT_SEQ_CLEAR_ROTATION:
392 case ACT_SEQ_WAIT_ROTATION:
409 sceVu0FVECTOR offset;
427 if (sequence->
operation == ACT_SEQ_SET_ROTATION) {
443 sceVu0FVECTOR offset;
454 sceVu0FVECTOR direction = {0.0f, 0.0f, 0.0f, 0.0f};
474 }
else if (direction[0] != 0.0f || direction[2] != 0.0f) {
475 float target_yaw = atan2f(direction[0], direction[2]);
479 if (AngleCmp(
rotation[1], target_yaw, 0.001f) == 0) {
502 float step = motion_info->
speed;
508 if (!(motion_info->
end <= motion_time) && motion_info->
start < motion_time && motion_info->
end - step - 0.01f <= motion_time) {
510 if (!(motion_info->
end <= motion_time) && motion_info->
start < motion_time && motion_info->
end - motion_info->
speed - 0.01f <= motion_time) {
515 if (motion_type != NULL) {
532 if (queued_motion != NULL &&
character != NULL) {
555 case ACT_SEQ_ANIMATION:
599 if (animation_shown != 0) {
625 sceVu0FVECTOR wrapped_rotation;
633 wrapped_rotation[3] = 0.0f;
635 turns = wrapped_rotation[1] / TWO_PI;
636 whole_turns = (int) turns;
637 wrapped_rotation[1] -= PI * (2.0f * (int) turns);
639 if (wrapped_rotation[1] > PI) {
640 wrapped_rotation[1] -= TWO_PI;
643 if (wrapped_rotation[1] < -PI) {
644 wrapped_rotation[1] += TWO_PI;