31 if (!(temp_f0 < 0.0f) && !(600000.0f < temp_f0)) {
32 if ((item_box->
state == 2) && (temp_f0 < 100000.0f)) {
34 someRot[1] = item_box->
rot[1];
36 someVec2[0] = item_box->
pos[0];
38 someVec2[2] = item_box->
pos[2];
46 someRot[1] = item_box->
rot[1] * 2;
47 someVec2[1] = item_box->
pos[1];
56 if (item_box->
state == 5) {
65 if (item_box->
state != 3) {
74 if ((item_box->
rot[1] < 0xAA1) && (item_box->
rot[1] > 0)) {
76 }
else if ((item_box->
rot[1] >= 0x6AA5) && (item_box->
rot[1] < 0x754E)) {
78 }
else if ((item_box->
rot[1] >= 0x38E1) && (item_box->
rot[1] < 0x438A)) {
80 }
else if ((item_box->
rot[1] >= 0xC711) && (item_box->
rot[1] < 0xD1BA)) {
95 someMultiplier = 1.0f;
97 someMultiplier = 1.0f - ((thing - 10.0f) * 0.1f);
105 temp_f2 = 2.0f * thing;
107 someVec1[1] = temp_f2;
116 temp_f2_2 = 0.8f * thing;
117 temp_f12 = 0.5f * thing;
118 someVec1[0] = temp_f2_2;
119 someVec1[1] = 2.3f * thing;
120 someVec1[2] = temp_f12;
128 temp_f0_2 = -0.5f * thing;
129 someVec1[0] = temp_f2_2;
130 someVec1[1] = 1.2f * thing;
131 someVec1[2] = temp_f0_2;
145 someVec1[1] = 1.8f * thing;
146 someVec1[2] = -1.0f * thing;
154 temp_f0_3 = -0.8f * thing;
155 someVec1[0] = temp_f0_3;
156 someVec1[1] = 0.6f * thing;
157 someVec1[2] = temp_f0_2;
165 someVec1[0] = temp_f0_3;
166 someVec1[1] = temp_f2;
167 someVec1[2] = temp_f12;
Camera * camera1
Definition camera.c:23
Gfx itemBoxQuestionMarkModel[]
f32 Vec3f[3]
Definition common_structs.h:6
s16 Vec3s[3]
Definition common_structs.h:11
f32 Mat4[4][4]
Definition common_structs.h:16
#define G_CULL_BACK
Definition gbi.h:351
#define G_RM_NOOP2
Definition gbi.h:968
#define G_RM_ZB_CLD_SURF2
Definition gbi.h:949
#define G_RM_ZB_CLD_SURF
Definition gbi.h:948
#define G_SHADING_SMOOTH
Definition gbi.h:349
#define G_RM_AA_ZB_OPA_SURF
Definition gbi.h:878
#define G_RM_AA_ZB_OPA_SURF2
Definition gbi.h:879
#define G_RM_AA_ZB_XLU_INTER
Definition gbi.h:888
#define G_LIGHTING
Definition gbi.h:355
#define G_CC_MODULATEIA
Definition gbi.h:488
void render_actor_item_box(Camera *camera, struct ItemBox *item_box)
Renders the item box actor.
Definition render.inc.c:11
#define UNUSED
Definition macros.h:23
Gfx * gDisplayListHead
Definition main.c:132
f32 gCameraZoom[4]
Definition main.c:122
f32 is_within_render_distance(Vec3f cameraPos, Vec3f objectPos, u16 orientationY, f32 minDistance, f32 fov, f32 maxDistance)
Definition math_util.c:1114
void mtxf_pos_rotation_xyz(Mat4 out, Vec3f pos, Vec3s orientation)
Definition math_util.c:468
s32 render_set_position(Mat4 arg0, s32 arg1)
Definition math_util.c:47
void add_translate_mat4_vec3f(Mat4 mat, Mat4 dest, Vec3f pos)
Definition math_util.c:181
void mtxf_scale(Mat4 mat, f32 coef)
Definition math_util.c:455
#define G_ON
Definition mbi.h:51
Vec3s rot
Definition camera.h:33
Vec3f pos
Definition camera.h:27
Definition actor_types.h:331
s16 someTimer
Definition actor_types.h:334
Vec3f pos
Definition actor_types.h:342
s16 state
Definition actor_types.h:335
f32 resetDistance
Definition actor_types.h:336
Vec3s rot
Definition actor_types.h:340
signed int s32
Definition ultratypes.h:15
float f32
Definition ultratypes.h:34