25 {
29 s32 numParts = 1;
30 f32 var_f12;
31 f32 temp_f20;
32 f32 temp_f22;
33 f32 temp_f24;
34 s32 var_v0;
35
42
47
50
51 temp_f24 = arg4 - arg1;
52 temp_f22 = arg5 - arg2;
53 temp_f20 = arg6 - arg3;
54 var_f12 =
SQ(temp_f24) +
SQ(temp_f22) +
SQ(temp_f20);
55
56 if (var_f12 != 0.0f) {
57 var_f12 =
sqrtf(var_f12);
58 }
59
60 if (arg7 > 0.0f) {
61 var_v0 = var_f12 / arg7;
62 } else {
63 var_v0 = 0;
64 }
65
66 if (var_v0 != 0) {
67 var_f12 = 1.0f / var_v0;
68 data->
unk_10 = temp_f24 * var_f12;
69 data->
unk_14 = temp_f22 * var_f12;
70 data->
unk_18 = temp_f20 * var_f12;
71 } else {
75 }
76
77 if (var_v0 < 0) {
79 } else {
81 }
82
88
89 switch (arg0) {
90 case 0:
91 case 2:
99 break;
100 case 1:
101 default:
109 break;
110 }
111
112 return effect;
113}
#define general_heap_malloc
#define create_effect_instance
#define ASSERT(condition)
void moving_cloud_update(EffectInstance *effect)
void moving_cloud_init(EffectInstance *effect)
void moving_cloud_render(EffectInstance *effect)
void(* renderUI)(EffectInstance *effectInst)
void(* init)(EffectInstance *effectInst)
void(* update)(EffectInstance *effectInst)
void(* renderWorld)(EffectInstance *effectInst)