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);
56 if (var_f12 != 0.0f) {
57 var_f12 =
sqrtf(var_f12);
61 var_v0 = var_f12 / arg7;
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;
120 s32 unk_00 = data->
unk_00;
124 effect->
flags &= ~FX_INSTANCE_FLAG_DISMISS;
128 if (data->
unk_1C < 1000) {
141 if (unk_00 == 0 || unk_00 == 2) {
148 data->
unk_30 = unk_1C * 16;
157 data->
unk_30 = unk_1C * 64;
172 renderTask.
dist = 10;
182 s32 unk_30 = data->
unk_30;
#define general_heap_malloc
#define queue_render_task
#define create_effect_instance
struct MovingCloudFXData * movingCloud
#define ASSERT(condition)
@ FX_INSTANCE_FLAG_DISMISS
@ RENDER_TASK_FLAG_REFLECT_FLOOR
@ RENDER_MODE_CLOUD_NO_ZCMP
EffectInstance * moving_cloud_main(s32 arg0, f32 arg1, f32 arg2, f32 arg3, f32 arg4, f32 arg5, f32 arg6, f32 arg7, f32 arg8)
void moving_cloud_update(EffectInstance *effect)
void moving_cloud_appendGfx(void *effect)
void moving_cloud_init(EffectInstance *effect)
void moving_cloud_render(EffectInstance *effect)
#define VIRTUAL_TO_PHYSICAL(addr)
void(* renderUI)(EffectInstance *effectInst)
void(* init)(EffectInstance *effectInst)
void(* update)(EffectInstance *effectInst)
void(* renderWorld)(EffectInstance *effectInst)
void(* appendGfx)(void *)
DisplayContext * gDisplayContext